1
0
mirror of synced 2025-02-20 14:13:15 +03:00

Minor collection serialization bug fixed

This commit is contained in:
doctrine 2006-06-08 10:25:41 +00:00
parent 2b01d706d3
commit f5acdfbfe7

View File

@ -104,12 +104,12 @@ class Doctrine_Collection extends Doctrine_Access implements Countable, Iterator
$this->$name = $values;
}
$this->table = $session->getTable($this->table->getComponenName());
$this->table = $session->getTable($this->table);
$this->expanded = array();
$this->expandable = true;
$name = $table->getAttribute(Doctrine::ATTR_COLL_KEY);
$name = $this->table->getAttribute(Doctrine::ATTR_COLL_KEY);
if($name !== null) {
$this->generator = new Doctrine_IndexGenerator($name);
}