1
0
Fork 0
mirror of synced 2025-03-28 19:03:50 +03:00
This commit is contained in:
zYne 2007-03-31 19:49:23 +00:00
parent a3ceef45cb
commit 732bc89a89
2 changed files with 1 additions and 2 deletions

View file

@ -81,7 +81,6 @@ class Doctrine_Collection extends Doctrine_Access implements Countable, Iterator
{
if ( ! ($table instanceof Doctrine_Table)) {
$table = Doctrine_Manager::getInstance()
->getCurrentConnection()
->getTable($table);
}
$this->table = $table;

View file

@ -522,7 +522,7 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite
public function unserialize($serialized)
{
$manager = Doctrine_Manager::getInstance();
$connection = $manager->getCurrentConnection();
$connection = $manager->getConnectionForComponent(get_class($this));
$this->oid = self::$index;
self::$index++;