mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
DbObject: use original UUID in where
This allows to change a UUID
This commit is contained in:
parent
045f4ec941
commit
6c611a5db4
@ -1049,7 +1049,7 @@ abstract class DbObject
|
||||
if ($this->hasUuidColumn() && $this->properties[$this->uuidColumn] !== null) {
|
||||
return $this->db->quoteInto(
|
||||
sprintf('%s = ?', $this->getUuidColumn()),
|
||||
$this->connection->quoteBinary($this->getUniqueId()->getBytes())
|
||||
$this->connection->quoteBinary($this->getOriginalProperty($this->uuidColumn))
|
||||
);
|
||||
}
|
||||
if ($id = $this->getAutoincId()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user