3 namespace Wallabag\CoreBundle\Repository
;
5 use Doctrine\ORM\EntityRepository
;
6 use Pagerfanta\Adapter\DoctrineORMAdapter
;
7 use Pagerfanta\Pagerfanta
;
9 class TagRepository
extends EntityRepository
18 public function findTags($userId)
20 $qb = $this->createQueryBuilder('t')
21 ->where('t.user =:userId')->setParameter('userId', $userId);
23 $pagerAdapter = new DoctrineORMAdapter($qb);
25 return new Pagerfanta($pagerAdapter);