- Fixed PHP notice in unserialize() caused by $keyColumn not being initialized.
This commit is contained in:
parent
769fd478ad
commit
c50b2bc375
@ -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');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user