From f5acdfbfe70a5899351ffd67933e87184c028ba8 Mon Sep 17 00:00:00 2001 From: doctrine Date: Thu, 8 Jun 2006 10:25:41 +0000 Subject: [PATCH] Minor collection serialization bug fixed --- Doctrine/Collection.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doctrine/Collection.php b/Doctrine/Collection.php index 43f8bb077..af58dbb2b 100644 --- a/Doctrine/Collection.php +++ b/Doctrine/Collection.php @@ -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); }