CodeExplorer fetchByColumn example
$query->
setParameter('id',
$parentId);
return $query;
} private function loadAllParents(array
$ids, EntityDefinition
$definition, Context
$context, TreeUpdaterBag
$bag): void
{ $levels = 100;
$parentIds =
$ids;
do { $ids =
$this->
fetchByColumn($parentIds,
$definition, 'id',
$context,
$bag);
$parentIds =
[];
foreach ($ids as $id) { $parent =
$bag->
getEntity($id);
if ($parent !== null &&
$parent['parent_id'
] !== null
) { $parentIds[$parent['parent_id'
]] =
$parent['parent_id'
];
} } --
$levels;
} while ($parentIds !==
[] &&
$levels >= 0
);