src/PHPDish/Bundle/UserBundle/Service/UserManager.php
public function findPostVoters(PostInterface $post, $page, $limit = null)
    {
        $query = $this->getRepository()->createQueryBuilder('u')
            ->innerJoin('u.votedPosts', 'vp')
            ->where('vp.id = :postId')->setParameter('postId', $post->getId())
            ->getQuery();

        return $this->createPaginator($query, $page, $limit);
    }
public function findPostVoters(PostInterface $post, $page, $limit = null)
    {
        $query = $this->getRepository()->createQueryBuilder('u')
            ->innerJoin('u.votedPosts', 'vp')
            ->where('vp.id = :postId')->setParameter('postId', $post->getId())
            ->getQuery();

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