Commit c50b2bc3 authored by wolfpakz's avatar wolfpakz

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

parent 769fd478
...@@ -169,6 +169,7 @@ class Doctrine_Collection extends Doctrine_Access implements Countable, Iterator ...@@ -169,6 +169,7 @@ class Doctrine_Collection extends Doctrine_Access implements Countable, Iterator
$this->_table = $connection->getTable($this->_table); $this->_table = $connection->getTable($this->_table);
$keyColumn = isset($array['keyColumn']) ? $array['keyColumn'] : null;
if ($keyColumn === null) { if ($keyColumn === null) {
$keyColumn = $this->_table->getBoundQueryPart('indexBy'); $keyColumn = $this->_table->getBoundQueryPart('indexBy');
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment