validateCriteriaAssociation example

if ($readProtection && !$readProtection->isAllowed($context->getScope())) {
            throw new AccessDeniedHttpException(
                sprintf(
                    'Read access to entity "%s" not allowed for scope "%s".',
                    $definition->getEntityName(),
                    $context->getScope()
                )
            );
        }

        $this->validateCriteriaAssociation(
            $definition,
            $event->getCriteria()->getAssociations(),
            $context
        );
    }

    public function validateWriteCommands(PreWriteValidationEvent $event): void
    {
        foreach ($event->getCommands() as $command) {
            // Don't validate commands that fake operations on DB level, e.g. cascade deletes             if (!$command->isValid()) {
                
Home | Imprint | This part of the site doesn't use cookies.