mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
Prevent multiples sub-queries.
This commit is contained in:
@@ -15,7 +15,13 @@ final class FlatHierarchyEntityHydrator extends ObjectHydrator
|
||||
{
|
||||
$generator = $this->buildRecursively(
|
||||
parent::hydrateAllData(),
|
||||
static fn($value): iterable => $value->getChildren(),
|
||||
static function($value): iterable {
|
||||
$children = $value->getChildren();
|
||||
|
||||
$children->setInitialized(true);
|
||||
|
||||
return $children;
|
||||
}
|
||||
);
|
||||
|
||||
$result = [];
|
||||
|
Reference in New Issue
Block a user