/**
* @param array<mixed> $entities
*/
public function create(array
$entities, Context
$context): EntityLoadedContainerEvent
{ $mapping =
$this->
recursion($entities,
[]);
$generator =
fn (EntityDefinition
$definition, array
$entities) =>
new EntityLoadedEvent($definition,
$entities,
$context);
return $this->
buildEvents($mapping,
$generator,
$context);
} /**
* @param array<mixed> $entities
*/
public function createPartial(array
$entities, Context
$context): EntityLoadedContainerEvent
{ $mapping =
$this->
recursion($entities,
[]);
$generator =
fn (EntityDefinition
$definition, array
$entities) =>
new PartialEntityLoadedEvent($definition,
$entities,
$context);