mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
DbObjectStore: load by ID for int keys
This commit is contained in:
parent
430f54837b
commit
8a280619ad
@ -67,7 +67,11 @@ class DbObjectStore
|
||||
}
|
||||
$modification = null;
|
||||
try {
|
||||
$object = $class::load($key, $this->connection);
|
||||
if (is_int($key)) {
|
||||
$object = $class::loadWithAutoIncId($key, $this->connection);
|
||||
} else {
|
||||
$object = $class::load($key, $this->connection);
|
||||
}
|
||||
if ($branchStore && $modification = $branchStore->eventuallyLoadModification(
|
||||
$object->get('id'),
|
||||
$this->branch->getUuid()
|
||||
|
Loading…
x
Reference in New Issue
Block a user