ORM/PaginatedRepository.php
protected function createPaginatedQueryBuilder(array $criteria = [], $indexBy = null, array $orderBy = null)
    {
        $qb = new PaginatedQueryBuilder($this->_em);
        $qb->from($this->_entityName, $this->getEntityAlias(), $indexBy);

        $this->processCriteria($qb, $criteria);

        return $qb;
    }
protected function createPaginatedQueryBuilder(array $criteria = [], $indexBy = null, array $orderBy = null)
    {
        $qb = new PaginatedQueryBuilder($this->_em);
        $qb->from($this->_entityName, $this->getEntityAlias(), $indexBy);

        $this->processCriteria($qb, $criteria);

        return $qb;
    }
protected function createPaginatedQueryBuilder ( array $ criteria = [ ] , $ indexBy = null , array $ orderBy = null ) { $ qb = new PaginatedQueryBuilder ( $ this -> _em ) ; $ qb -> from ( $ this -> _entityName , $ this -> getEntityAlias ( ) , $ indexBy ) ; $ this -> processCriteria ( $ qb , $ criteria ) ; return $ qb ; }
Creates a query builder for pagination

@param array      $criteria
@param string     $indexBy
@param array|null $orderBy

@return PaginatedQueryBuilder
Creates a query builder for pagination