$e =
$innerException;
} $context->
getExceptions()->
add($e);
$entityDeleteEvent->
error();
Feature::
ifNotActive('v6.6.0.0',
fn () =>
$entityDeleteEventLegacy->
error());
throw $e;
} // throws exception on violation and then aborts/rollbacks this transaction
$event =
new PostWriteValidationEvent($context,
$commands);
$this->eventDispatcher->
dispatch($event);
$context->
getExceptions()->
tryToThrow();
} /**
* @param list<array<string, string>> $pks
*/
private function prefetch(EntityDefinition
$definition, array
$pks, WriteParameterBag
$parameters): void
{ $pkFields =
[];
$versionField = null;