From c50b2bc37565123379bb10befce61337944c9c4f Mon Sep 17 00:00:00 2001 From: wolfpakz Date: Thu, 8 Nov 2007 20:52:49 +0000 Subject: [PATCH] - Fixed PHP notice in unserialize() caused by $keyColumn not being initialized. --- lib/Doctrine/Collection.php | 1 + 1 file changed, 1 insertion(+) 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'); }