mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
DbObject: exists should return false...
...in case there is no related uuid refs #2434
This commit is contained in:
parent
1cbb033911
commit
2e01e181aa
@ -1375,10 +1375,13 @@ abstract class DbObject
|
||||
$table = $obj->getTableName();
|
||||
assert($connection instanceof Db);
|
||||
$uuid = UuidLookup::findUuidForKey($id, $table, $connection, self::$dbObjectStore->getBranch());
|
||||
|
||||
if ($uuid) {
|
||||
return self::$dbObjectStore->exists($table, $uuid);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
$obj->setConnection($connection)->setKey($id);
|
||||
return $obj->existsInDb();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user