src/PHPDish/Bundle/ForumBundle/Service/ThreadManager.php
public function findUserFollowingThreads(UserInterface $user, $page, $limit = null, Criteria $criteria = null)
    {
        $qb = $this->getThreadRepository()->createQueryBuilder('t')
            ->leftJoin('t.followers', 'f')
            ->where('f.id = :userId')
            ->setParameter('userId', $user);
        $criteria && $qb->addCriteria($criteria);
        return $this->createPaginator($qb->getQuery(), $page, $limit);
    }
public function findUserFollowingThreads(UserInterface $user, $page, $limit = null, Criteria $criteria = null)
    {
        $qb = $this->getThreadRepository()->createQueryBuilder('t')
            ->leftJoin('t.followers', 'f')
            ->where('f.id = :userId')
            ->setParameter('userId', $user);
        $criteria && $qb->addCriteria($criteria);
        return $this->createPaginator($qb->getQuery(), $page, $limit);
    }
{@inheritdoc}