src/PHPDish/Bundle/ForumBundle/Service/ReplyManager.php
public function findUserReplies(UserInterface $user, $page, $limit = null, Criteria $criteria = null)
    {
        $qb = $this->getReplyRepository()->createQueryBuilder('r')
            ->addSelect('rt')
            ->join('r.topic', 'rt')
            ->where('r.user = :user')->setParameter('user', $user)
            ->andWhere('r.enabled = :enabled')->setParameter('enabled', true)
            ->orderBy('r.createdAt', 'desc');

        if ($criteria) {
            $qb->addCriteria($criteria);
        }
        return $this->createPaginator($qb->getQuery(), $page, $limit);
    }
public function findUserReplies(UserInterface $user, $page, $limit = null, Criteria $criteria = null)
    {
        $qb = $this->getReplyRepository()->createQueryBuilder('r')
            ->addSelect('rt')
            ->join('r.topic', 'rt')
            ->where('r.user = :user')->setParameter('user', $user)
            ->andWhere('r.enabled = :enabled')->setParameter('enabled', true)
            ->orderBy('r.createdAt', 'desc');

        if ($criteria) {
            $qb->addCriteria($criteria);
        }
        return $this->createPaginator($qb->getQuery(), $page, $limit);
    }
{@inheritdoc}