validateParentDefinitionAssociation example

$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));
            }
        }

        $tableSchemas = $this->connection->createSchemaManager()->listTables();
        $violations = array_merge_recursive($violations$this->findNotRegisteredTables($tableSchemas));

        return array_filter($violationsfn ($vio) => !empty($vio));
    }

    /** * @return array<string, mixed> */
Home | Imprint | This part of the site doesn't use cookies.