src/Sulu/Bundle/ContactBundle/Controller/AccountController.php
protected function applyRequestParameters(Request $request, $listBuilder)
    {
        if (json_decode($request->get('hasNoParent', null))) {
            $listBuilder->where($this->getFieldDescriptorForNoParent(), null);
        }

        if (json_decode($request->get('hasEmail', null))) {
            $listBuilder->whereNot($this->getFieldDescriptors()['mainEmail'], null);
        }
    }
protected function applyRequestParameters(Request $request, $listBuilder)
    {
        if (json_decode($request->get('hasNoParent', null))) {
            $listBuilder->where($this->getFieldDescriptorForNoParent(), null);
        }

        if (json_decode($request->get('hasEmail', null))) {
            $listBuilder->whereNot($this->getFieldDescriptors()['mainEmail'], null);
        }
    }
protected function applyRequestParameters ( Request $ request , $ listBuilder ) { if ( json_decode ( $ request -> get ( 'hasNoParent' , null ) ) ) { $ listBuilder -> where ( $ this -> getFieldDescriptorForNoParent ( ) , null ) ; } if ( json_decode ( $ request -> get ( 'hasEmail' , null ) ) ) { $ listBuilder -> whereNot ( $ this -> getFieldDescriptors ( ) [ 'mainEmail' ] , null ) ; } }
Applies the filter parameter and hasNoparent parameter for listbuilder.

@param Request $request
@param DoctrineListBuilder $listBuilder
Applies the filter parameter and hasNoparent parameter for listbuilder .