DbObject: UUID on insert is required

fixes #2407
This commit is contained in:
Thomas Gelf 2021-10-08 15:23:17 +02:00
parent 2906dc8acc
commit 75e414006d

View File

@ -824,6 +824,9 @@ abstract class DbObject
unset($properties[$this->autoincKeyName]);
}
}
if ($column = $this->getUuidColumn()) {
$properties[$column] = $this->getUniqueId()->getBytes();
}
$this->quoteBinaryProperties($properties);
return $this->db->insert($this->table, $properties);