src/Contao/Dca/Builder/Legacy/ExtendedLegacyDcaDataDefinitionBuilder.php
protected function parseConditions(ContainerInterface $container)
    {
        if ($container->hasDefinition(ModelRelationshipDefinitionInterface::NAME)) {
            $definition = $container->getDefinition(ModelRelationshipDefinitionInterface::NAME);
        } else {
            $definition = new DefaultModelRelationshipDefinition();
            $container->setDefinition(ModelRelationshipDefinitionInterface::NAME, $definition);
        }

        $this->parseRootCondition($container, $definition);
        $this->parseParentChildConditions($definition);
    }
protected function parseConditions(ContainerInterface $container)
    {
        if ($container->hasDefinition(ModelRelationshipDefinitionInterface::NAME)) {
            $definition = $container->getDefinition(ModelRelationshipDefinitionInterface::NAME);
        } else {
            $definition = new DefaultModelRelationshipDefinition();
            $container->setDefinition(ModelRelationshipDefinitionInterface::NAME, $definition);
        }

        $this->parseRootCondition($container, $definition);
        $this->parseParentChildConditions($definition);
    }
protected function parseConditions ( ContainerInterface $ container ) { if ( $ container -> hasDefinition ( ModelRelationshipDefinitionInterface :: NAME ) ) { $ definition = $ container -> getDefinition ( ModelRelationshipDefinitionInterface :: NAME ) ; } else { $ definition = new DefaultModelRelationshipDefinition ( ) ; $ container -> setDefinition ( ModelRelationshipDefinitionInterface :: NAME , $ definition ) ; } $ this -> parseRootCondition ( $ container , $ definition ) ; $ this -> parseParentChildConditions ( $ definition ) ; }
Parse the conditions for model relationships from the definition.

This includes root entry filters, parent child relationship.

@param ContainerInterface $container The container where the data shall be stored.

@return void

@throws DcGeneralRuntimeException If any information is missing or invalid.
Parse the conditions for model relationships from the definition .