diff --git a/lib/Doctrine/Collection.php b/lib/Doctrine/Collection.php index d9f8ad670..0c72cac91 100644 --- a/lib/Doctrine/Collection.php +++ b/lib/Doctrine/Collection.php @@ -169,6 +169,7 @@ class Doctrine_Collection extends Doctrine_Access implements Countable, Iterator $this->_table = $connection->getTable($this->_table); + $keyColumn = isset($array['keyColumn']) ? $array['keyColumn'] : null; if ($keyColumn === null) { $keyColumn = $this->_table->getBoundQueryPart('indexBy'); }