src/PHPDish/Bundle/ForumBundle/Service/ReplyManager.php
public function findTopicReplies(TopicInterface $topic, $page, $limit = null, Criteria $criteria = null)
    {
        $qb = $this->getRepliesQb()
            ->where('r.topic = :topic')->setParameter('topic', $topic)
            ->andWhere('r.enabled = :enabled')->setParameter('enabled', true);

        if ($criteria) {
            $qb->addCriteria($criteria);
        }
        return $this->createPaginator($qb->getQuery(), $page, $limit);
    }
public function findTopicReplies(TopicInterface $topic, $page, $limit = null, Criteria $criteria = null)
    {
        $qb = $this->getRepliesQb()
            ->where('r.topic = :topic')->setParameter('topic', $topic)
            ->andWhere('r.enabled = :enabled')->setParameter('enabled', true);

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