public function buildQuery(Form $form, AbstractQueryBuilder $queryBuilder)
    {
        $data = $form->getData();

        foreach ($data as $name => $val) {
            if (isset($val['value']) && $val['value']) {
                $type = $form->get($name)->getConfig()->getType();
                if (is_callable(array($type, 'getInnerType'))) {
                    $type = $type->getInnerType();
                }
                if ($type instanceof FilterTypeInterface) {
                    $type->applyFilter($queryBuilder, $name, $data[$name]);
                }
            }
        }
    }
public function buildQuery(Form $form, AbstractQueryBuilder $queryBuilder)
    {
        $data = $form->getData();

        foreach ($data as $name => $val) {
            if (isset($val['value']) && $val['value']) {
                $type = $form->get($name)->getConfig()->getType();
                if (is_callable(array($type, 'getInnerType'))) {
                    $type = $type->getInnerType();
                }
                if ($type instanceof FilterTypeInterface) {
                    $type->applyFilter($queryBuilder, $name, $data[$name]);
                }
            }
        }
    }
public function buildQuery ( Form $ form , AbstractQueryBuilder $ queryBuilder ) { $ data = $ form -> getData ( ) ; foreach ( $ data as $ name => $ val ) { if ( isset ( $ val [ 'value' ] ) && $ val [ 'value' ] ) { $ type = $ form -> get ( $ name ) -> getConfig ( ) -> getType ( ) ; if ( is_callable ( array ( $ type , 'getInnerType' ) ) ) { $ type = $ type -> getInnerType ( ) ; } if ( $ type instanceof FilterTypeInterface ) { $ type -> applyFilter ( $ queryBuilder , $ name , $ data [ $ name ] ) ; } } } }
Build the QueryBuilder object.

@param Form                 $form
@param AbstractQueryBuilder $queryBuilder
Build the QueryBuilder object .