From deabfcbb54559b3bc7d5d57d68e246c28f2a7870 Mon Sep 17 00:00:00 2001 From: jackbravo Date: Fri, 30 Nov 2007 22:46:06 +0000 Subject: [PATCH] Fix ticket #620, PATCH provided by baron314159, thanks --- lib/Doctrine/Table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }