checkParentDefinition example

$this->findEntityNotices($struct$definition)
                );
            }

            $notices[$definition->getClass()] = array_merge_recursive(
                $violations[$definition->getClass()],
                $this->validateDataFieldNotPrefixedByEntityName($definition)
            );

            $notices[$definition->getClass()] = array_merge_recursive(
                $violations[$definition->getClass()],
                $this->checkParentDefinition($definition)
            );

            $violations = array_merge_recursive($violations$this->validateAssociations($definition));

            if (is_subclass_of($definition, EntityTranslationDefinition::class)) {
                $violations = array_merge_recursive($violations$this->validateEntityTranslationGettersAreNullable($definition));
                $violations = array_merge_recursive($violations$this->validateEntityTranslationDefinitions($definition));
            }

            if (($parentDefinition = $definition->getParentDefinition()) !== null) {
                $violations = array_merge_recursive($violations$this->validateParentDefinitionAssociation($definition$parentDefinition));
            }
Home | Imprint | This part of the site doesn't use cookies.