src/PHPDish/Bundle/ForumBundle/Service/ThreadManager.php
public function findThreadsPager(Criteria $criteria, $page, $limit = null)
    {
        $qb = $this->getThreadRepository()->createQueryBuilder('t')
            ->addCriteria($criteria);
        return $this->createPaginator($qb->getQuery(), $page, $limit);
    }
public function findThreadsPager(Criteria $criteria, $page, $limit = null)
    {
        $qb = $this->getThreadRepository()->createQueryBuilder('t')
            ->addCriteria($criteria);
        return $this->createPaginator($qb->getQuery(), $page, $limit);
    }
{@inheritdoc}