protected function applyRequestFilters(QueryBuilder $queryBuilder, array $filters = [])
    {
        foreach ($filters as $field => $value) {
            // Empty string and numeric keys is considered as "not applied filter"
            if ('' === $value || \is_int($field)) {
                continue;
            }

            $operator = \is_array($value) ? ListFilter::OPERATOR_IN : ListFilter::OPERATOR_EQUALS;
            $listFilter = ListFilter::createFromRequest($field, $operator, $value);

            $this->filterQueryBuilder($queryBuilder, $field, $listFilter);
        }
    }
protected function applyRequestFilters(QueryBuilder $queryBuilder, array $filters = [])
    {
        foreach ($filters as $field => $value) {
            // Empty string and numeric keys is considered as "not applied filter"
            if ('' === $value || \is_int($field)) {
                continue;
            }

            $operator = \is_array($value) ? ListFilter::OPERATOR_IN : ListFilter::OPERATOR_EQUALS;
            $listFilter = ListFilter::createFromRequest($field, $operator, $value);

            $this->filterQueryBuilder($queryBuilder, $field, $listFilter);
        }
    }
protected function applyRequestFilters ( QueryBuilder $ queryBuilder , array $ filters = [ ] ) { foreach ( $ filters as $ field => $ value ) { // Empty string and numeric keys is considered as "not applied filter" if ( '' === $ value || \ is_int ( $ field ) ) { continue ; } $ operator = \ is_array ( $ value ) ? ListFilter :: OPERATOR_IN : ListFilter :: OPERATOR_EQUALS ; $ listFilter = ListFilter :: createFromRequest ( $ field , $ operator , $ value ) ; $ this -> filterQueryBuilder ( $ queryBuilder , $ field , $ listFilter ) ; } }
Applies request filters on queryBuilder.

@param QueryBuilder $queryBuilder
@param array        $filters
Applies request filters on queryBuilder .