src/CoreBundle/EventListener/DcGeneral/DefinitionBuilder/AbstractConditionBuilder.php
protected function getRootCondition()
    {
        $rootProvider = $this->container->getName();

        if (($relationship = $this->definition->getRootCondition()) === null) {
            $relationship = new RootCondition();
            $relationship
                ->setSourceName($rootProvider);
            $this->definition->setRootCondition($relationship);
        }

        return $relationship;
    }
protected function getRootCondition()
    {
        $rootProvider = $this->container->getName();

        if (($relationship = $this->definition->getRootCondition()) === null) {
            $relationship = new RootCondition();
            $relationship
                ->setSourceName($rootProvider);
            $this->definition->setRootCondition($relationship);
        }

        return $relationship;
    }
Parse the correct conditions for a MetaModel with variant support.

@return RootConditionInterface