src/PHPDish/Bundle/ForumBundle/Service/TopicManager.php
public function findThreadTopics(ThreadInterface $thread, $page, $limit = null, Criteria $criteria = null)
    {
        $qb = $this->getTopicRepository()->createQueryBuilder('t')
            ->innerJoin('t.threads', 'th')
            ->where('th.id = :threadId')->setParameter('threadId', $thread);
        $criteria && $qb->addCriteria($criteria);

        return $this->createPaginator($qb->getQuery(), $page, $limit);
    }
public function findThreadTopics(ThreadInterface $thread, $page, $limit = null, Criteria $criteria = null)
    {
        $qb = $this->getTopicRepository()->createQueryBuilder('t')
            ->innerJoin('t.threads', 'th')
            ->where('th.id = :threadId')->setParameter('threadId', $thread);
        $criteria && $qb->addCriteria($criteria);

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