1
0
mirror of synced 2024-12-14 07:06:04 +03:00

- Fixed PHP notice in unserialize() caused by $keyColumn not being initialized.

This commit is contained in:
wolfpakz 2007-11-08 20:52:49 +00:00
parent 769fd478ad
commit c50b2bc375

View File

@ -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');
}