diff --git a/lib/Doctrine/Table.php b/lib/Doctrine/Table.php index 29e996f5c..2b47c92c6 100644 --- a/lib/Doctrine/Table.php +++ b/lib/Doctrine/Table.php @@ -996,7 +996,7 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable $this->_columns[$name] = $options; } - if (isset($options['primary'])) { + if (!empty($options['primary'])) { if (isset($this->_identifier)) { $this->_identifier = (array) $this->_identifier; }