private function buildPathArray(array
$parent, TreePathField
$field): array
{ $path =
[];
if (\
array_key_exists('parent',
$parent)) { $path =
$this->
buildPathArray($parent['parent'
],
$field);
} try { $path[] = Uuid::
fromBytesToHex($parent[$field->
getPathField()]);
} catch (InvalidUuidException|InvalidUuidLengthException
) { $path[] =
$parent[$field->
getPathField()];
} return $path;
} private function loadParents(string
$parentId, EntityDefinition
$definition, string
$versionId): array
{ $query =
$this->
getEntityByIdQuery($parentId,
$definition);
$this->
makeQueryVersionAware($definition,
$versionId,
$query);