src/PHPDish/Bundle/UserBundle/Service/UserManager.php
public function findCategoryFollowers(CategoryInterface $category, $page, $limit = null)
    {
        $query = $this->getRepository()->createQueryBuilder('u')
            ->innerJoin('u.followingCategories', 'f')
            ->where('f.id = :categoryId')->setParameter('categoryId', $category->getId())
            ->getQuery();

        return $this->createPaginator($query, $page, $limit);
    }
public function findCategoryFollowers(CategoryInterface $category, $page, $limit = null)
    {
        $query = $this->getRepository()->createQueryBuilder('u')
            ->innerJoin('u.followingCategories', 'f')
            ->where('f.id = :categoryId')->setParameter('categoryId', $category->getId())
            ->getQuery();

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