src/PHPDish/Bundle/PostBundle/Service/CommentManager.php
public function findCommentsPager(Criteria $criteria, $page = 1, $limit = null)
    {
        $query = $this->getCommentRepository()->createQueryBuilder('c')
            ->join('c.user', 'cu')->addSelect('cu')
            ->addCriteria($criteria)
            ->getQuery();

        return $this->createPaginator($query, $page, $limit);
    }
public function findCommentsPager(Criteria $criteria, $page = 1, $limit = null)
    {
        $query = $this->getCommentRepository()->createQueryBuilder('c')
            ->join('c.user', 'cu')->addSelect('cu')
            ->addCriteria($criteria)
            ->getQuery();

        return $this->createPaginator($query, $page, $limit);
    }
{@inheritdoc}