mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 17:24:18 +02:00
BranchModificationStore: cast eventual objects
This commit is contained in:
parent
23f1fae784
commit
44b749f2bf
@ -228,7 +228,7 @@ class BranchModificationStore
|
||||
'uuid' => Uuid::uuid4()->getBytes(),
|
||||
'object_id' => $objectId,
|
||||
'created' => 'y',
|
||||
] + $properties);
|
||||
] + (array) $properties);
|
||||
}
|
||||
|
||||
protected function delete($objectId, UuidInterface $branchUuid)
|
||||
@ -247,13 +247,13 @@ class BranchModificationStore
|
||||
'branch_uuid' => $branchUuid->getBytes(),
|
||||
'uuid' => Uuid::uuid4()->getBytes(),
|
||||
'object_id' => $objectId,
|
||||
] + $properties);
|
||||
] + (array) $properties);
|
||||
}
|
||||
|
||||
protected function update($binaryUuid, $properties)
|
||||
{
|
||||
$this->db->update($this->table, [
|
||||
'uuid' => Uuid::uuid4()->getBytes(),
|
||||
] + $properties, $this->db->quoteInto('uuid = ?', $binaryUuid));
|
||||
] + (array) $properties, $this->db->quoteInto('uuid = ?', $binaryUuid));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user