private readonly Connection
$connection,
private readonly EventDispatcherInterface
$eventDispatcher,
private readonly ExceptionHandlerRegistry
$exceptionHandlerRegistry,
private readonly DefinitionInstanceRegistry
$definitionInstanceRegistry ) { } public function prefetchExistences(WriteParameterBag
$parameters): void
{ $primaryKeyBag =
$this->primaryKeyBag =
$parameters->
getPrimaryKeyBag();
if ($primaryKeyBag->
isPrefetchingCompleted()) { return;
} foreach ($primaryKeyBag->
getPrimaryKeys() as $entity =>
$pks) { $this->
prefetch($this->definitionInstanceRegistry->
getByEntityName($entity),
$pks,
$parameters);
} $primaryKeyBag->
setPrefetchingCompleted(true
);
} /**
* {@inheritdoc}
*/