fixes #300
This commit is contained in:
parent
a3ceef45cb
commit
732bc89a89
2 changed files with 1 additions and 2 deletions
|
@ -81,7 +81,6 @@ class Doctrine_Collection extends Doctrine_Access implements Countable, Iterator
|
||||||
{
|
{
|
||||||
if ( ! ($table instanceof Doctrine_Table)) {
|
if ( ! ($table instanceof Doctrine_Table)) {
|
||||||
$table = Doctrine_Manager::getInstance()
|
$table = Doctrine_Manager::getInstance()
|
||||||
->getCurrentConnection()
|
|
||||||
->getTable($table);
|
->getTable($table);
|
||||||
}
|
}
|
||||||
$this->table = $table;
|
$this->table = $table;
|
||||||
|
|
|
@ -522,7 +522,7 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite
|
||||||
public function unserialize($serialized)
|
public function unserialize($serialized)
|
||||||
{
|
{
|
||||||
$manager = Doctrine_Manager::getInstance();
|
$manager = Doctrine_Manager::getInstance();
|
||||||
$connection = $manager->getCurrentConnection();
|
$connection = $manager->getConnectionForComponent(get_class($this));
|
||||||
|
|
||||||
$this->oid = self::$index;
|
$this->oid = self::$index;
|
||||||
self::$index++;
|
self::$index++;
|
||||||
|
|
Loading…
Add table
Reference in a new issue