DbObject: fix legacy method call
This commit is contained in:
parent
330c7b825e
commit
2021dc3479
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue