/** * unseralize * this method is automatically called everytime a Doctrine_Collection object is unserialized * * @return void */ public function unserialize($serialized) { $manager = Doctrine_Manager::getInstance(); $connection = $manager->getCurrentConnection(); $array = unserialize($serialized); foreach ($array as $name => $values) { $this->{$name} = $values; } $this->_table = $connection->getTable($this->_table); $name = $this->_table->getAttribute(Doctrine::ATTR_COLL_KEY); if ($name !== null) { $this->keyColumn = $name; } }