From 2021dc3479bac21673225aaaf501dfcc10860c2f Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Thu, 25 Jun 2015 08:45:36 +0200 Subject: [PATCH] DbObject: fix legacy method call --- library/Director/Data/Db/DbObject.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Director/Data/Db/DbObject.php b/library/Director/Data/Db/DbObject.php index 7bd773ed..86bbf0e5 100644 --- a/library/Director/Data/Db/DbObject.php +++ b/library/Director/Data/Db/DbObject.php @@ -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(); } }