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,8 +1375,11 @@ abstract class DbObject
|
|||||||
$table = $obj->getTableName();
|
$table = $obj->getTableName();
|
||||||
assert($connection instanceof Db);
|
assert($connection instanceof Db);
|
||||||
$uuid = UuidLookup::findUuidForKey($id, $table, $connection, self::$dbObjectStore->getBranch());
|
$uuid = UuidLookup::findUuidForKey($id, $table, $connection, self::$dbObjectStore->getBranch());
|
||||||
|
if ($uuid) {
|
||||||
|
return self::$dbObjectStore->exists($table, $uuid);
|
||||||
|
}
|
||||||
|
|
||||||
return self::$dbObjectStore->exists($table, $uuid);
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$obj->setConnection($connection)->setKey($id);
|
$obj->setConnection($connection)->setKey($id);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user