UuidLookup: fix lookup for cloned branches

This commit is contained in:
Thomas Gelf 2022-09-09 14:30:51 +02:00
parent 3c7c7bc61a
commit 1df495b41e
1 changed files with 1 additions and 0 deletions

View File

@ -94,6 +94,7 @@ class UuidLookup
$uuid = self::fetchOptionalUuid($connection, $query);
if ($uuid === null && $branch->isBranch()) {
$query = self::addKeyToQuery($connection, $db->select()->from("branched_$table", 'uuid'), $key);
$query->where('branch_uuid = ?', $connection->quoteBinary($branch->getUuid()->getBytes()));
$uuid = self::fetchOptionalUuid($connection, $query);
}