public function addFilterToQueryBuilder(QueryBuilder $qb)
    {
        $filters = $this->dm->getFilterCollection()->getFilterCriteria($this->class);

        foreach ($filters as $filter) {
            $qb->addCriteria($filter);
        }
    }
public function addFilterToQueryBuilder(QueryBuilder $qb)
    {
        $filters = $this->dm->getFilterCollection()->getFilterCriteria($this->class);

        foreach ($filters as $filter) {
            $qb->addCriteria($filter);
        }
    }
public function addFilterToQueryBuilder ( QueryBuilder $ qb ) { $ filters = $ this -> dm -> getFilterCollection ( ) -> getFilterCriteria ( $ this -> class ) ; foreach ( $ filters as $ filter ) { $ qb -> addCriteria ( $ filter ) ; } }
Adds filter criteria to a QueryBuilder instance.

@param QueryBuilder $qb

@return void
Adds filter criteria to a QueryBuilder instance .