public function setupQb(QueryBuilder $qb, $filters)
    {
        $this->qb = $qb;
        $this->c = 0;
        $this->bind = array();

        $filters = $this->_unify($filters);

        $this->_setupOrderyBy($qb, $filters['orderby']);

        $this->_setFilters($qb, $filters['filters']);

        $filters['offset'] and $qb->setFirstResult($filters['offset']);

        $filters['limit'] and $qb->setMaxResults($filters['limit']);

        return $qb;
    }
public function setupQb(QueryBuilder $qb, $filters)
    {
        $this->qb = $qb;
        $this->c = 0;
        $this->bind = array();

        $filters = $this->_unify($filters);

        $this->_setupOrderyBy($qb, $filters['orderby']);

        $this->_setFilters($qb, $filters['filters']);

        $filters['offset'] and $qb->setFirstResult($filters['offset']);

        $filters['limit'] and $qb->setMaxResults($filters['limit']);

        return $qb;
    }
public function setupQb ( QueryBuilder $ qb , $ filters ) { $ this -> qb = $ qb ; $ this -> c = 0 ; $ this -> bind = array ( ) ; $ filters = $ this -> _unify ( $ filters ) ; $ this -> _setupOrderyBy ( $ qb , $ filters [ 'orderby' ] ) ; $ this -> _setFilters ( $ qb , $ filters [ 'filters' ] ) ; $ filters [ 'offset' ] and $ qb -> setFirstResult ( $ filters [ 'offset' ] ) ; $ filters [ 'limit' ] and $ qb -> setMaxResults ( $ filters [ 'limit' ] ) ; return $ qb ; }
Ustawia qb dla zapytania przez EntityManager.

@param \Doctrine\ORM\QueryBuilder $qb
@param type                       $filters

@return \Doctrine\ORM\QueryBuilder
Ustawia qb dla zapytania przez EntityManager .