DbObject: fix legacy method call

This commit is contained in:
Thomas Gelf 2015-06-25 08:45:36 +02:00
parent 330c7b825e
commit 2021dc3479
1 changed files with 1 additions and 1 deletions

View File

@ -797,7 +797,7 @@ abstract class DbObject
$class = get_called_class();
$obj = new $class();
$obj->connection = $connection;
$obj->setDb($connection->getDb())->setKey($id);
$obj->setDb($connection->getDbAdapter())->setKey($id);
return $obj->existsInDb();
}
}