Filter/FilterBuilderUpdater.php
protected function buildDefaultConditionNode(Form $form, ConditionNodeInterface $root, $parentName = '')
    {
        foreach ($form->all() as $child) {
            $formType = $child->getConfig()->getType()->getInnerType();

            $name = ('' !== $parentName) ? $parentName.'.'.$child->getName() : $child->getName();

            if ($child->getConfig()->hasAttribute('add_shared') || $formType instanceof EmbeddedFilterTypeInterface) {
                $isCollection = ($formType instanceof CollectionAdapterFilterType);

                $this->buildDefaultConditionNode(
                    $isCollection ? $child->get(0) : $child,
                    $root->andX(),
                    $name
                );
            } else {
                $root->field($name);
            }
        }
    }
protected function buildDefaultConditionNode(Form $form, ConditionNodeInterface $root, $parentName = '')
    {
        foreach ($form->all() as $child) {
            $formType = $child->getConfig()->getType()->getInnerType();

            $name = ('' !== $parentName) ? $parentName.'.'.$child->getName() : $child->getName();

            if ($child->getConfig()->hasAttribute('add_shared') || $formType instanceof EmbeddedFilterTypeInterface) {
                $isCollection = ($formType instanceof CollectionAdapterFilterType);

                $this->buildDefaultConditionNode(
                    $isCollection ? $child->get(0) : $child,
                    $root->andX(),
                    $name
                );
            } else {
                $root->field($name);
            }
        }
    }
protected function buildDefaultConditionNode ( Form $ form , ConditionNodeInterface $ root , $ parentName = '' ) { foreach ( $ form -> all ( ) as $ child ) { $ formType = $ child -> getConfig ( ) -> getType ( ) -> getInnerType ( ) ; $ name = ( '' !== $ parentName ) ? $ parentName . '.' . $ child -> getName ( ) : $ child -> getName ( ) ; if ( $ child -> getConfig ( ) -> hasAttribute ( 'add_shared' ) || $ formType instanceof EmbeddedFilterTypeInterface ) { $ isCollection = ( $ formType instanceof CollectionAdapterFilterType ) ; $ this -> buildDefaultConditionNode ( $ isCollection ? $ child -> get ( 0 ) : $ child , $ root -> andX ( ) , $ name ) ; } else { $ root -> field ( $ name ) ; } } }
Create a default node hierarchy by using AND operator.

@param Form                   $form
@param ConditionNodeInterface $root
@param string                 $parentName
Create a default node hierarchy by using AND operator .