foreach ($updateIds as $id) { $this->
singleUpdate(Uuid::
fromBytesToHex($id),
$entity,
$context);
} return;
} // 1. fetch parents until all ids have reached parent_id === null
$this->
loadAllParents($updateIds,
$definition,
$context,
$bag);
// 2. set path and level
$this->
updateLevelRecursively($updateIds,
$definition,
$context,
$bag);
} private function singleUpdate(string
$parentId, string
$entity, Context
$context): array
{ $definition =
$this->registry->
getByEntityName($entity);
$parent =
$this->
loadParents( Uuid::
fromHexToBytes($parentId),
$definition,
Uuid::
fromHexToBytes($context->
getVersionId()) );