UuidLookup: fix lookup for cloned branches
This commit is contained in:
parent
3c7c7bc61a
commit
1df495b41e
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue