public function applyFilters(QueryBuilder $queryBuilder, $alias, FilterBagInterface $filterBag = null)
    {
        if (is_null($filterBag)) {
            return $queryBuilder;
        }

        foreach ($filterBag->all() as $filter) {
            if ($filter instanceof FilterNode) {
                $this->applyFilter($queryBuilder, $alias, $filter);
            }
        }

        return $queryBuilder;
    }
public function applyFilters(QueryBuilder $queryBuilder, $alias, FilterBagInterface $filterBag = null)
    {
        if (is_null($filterBag)) {
            return $queryBuilder;
        }

        foreach ($filterBag->all() as $filter) {
            if ($filter instanceof FilterNode) {
                $this->applyFilter($queryBuilder, $alias, $filter);
            }
        }

        return $queryBuilder;
    }
public function applyFilters ( QueryBuilder $ queryBuilder , $ alias , FilterBagInterface $ filterBag = null ) { if ( is_null ( $ filterBag ) ) { return $ queryBuilder ; } foreach ( $ filterBag -> all ( ) as $ filter ) { if ( $ filter instanceof FilterNode ) { $ this -> applyFilter ( $ queryBuilder , $ alias , $ filter ) ; } } return $ queryBuilder ; }
Apply filters from a filter bag on the provided query builder

@param QueryBuilder       $queryBuilder QueryBuilder
@param string             $alias        QueryBuilder root alias
@param FilterBagInterface $filterBag    Filters to apply

@return QueryBuilder
Apply filters from a filter bag on the provided query builder