Merge branch 'master' of git.icinga.org:icingaweb2-module-director

This commit is contained in:
Alexander Fuhr 2015-06-26 10:40:22 +02:00
commit a2da7581b0
1 changed files with 1 additions and 1 deletions

View File

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