- Fixed PHP notice in unserialize() caused by $keyColumn not being initialized.
This commit is contained in:
parent
769fd478ad
commit
c50b2bc375
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue