DbObject: fix Command Argument creation

fixes #2453
This commit is contained in:
Thomas Gelf 2022-01-09 21:36:40 +01:00
parent c487a8b447
commit 87a16f11fa
1 changed files with 1 additions and 1 deletions

View File

@ -1265,7 +1265,7 @@ abstract class DbObject
/** @var DbObject $obj */
$obj = new static;
if (self::$dbObjectStore !== null) {
if (self::$dbObjectStore !== null && $obj->hasUuidColumn()) {
$table = $obj->getTableName();
assert($connection instanceof Db);
$uuid = UuidLookup::findUuidForKey($id, $table, $connection, self::$dbObjectStore->getBranch());