namespace Wallabag\CoreBundle\Repository;
use Doctrine\ORM\EntityRepository;
-use Pagerfanta\Adapter\DoctrineORMAdapter;
-use Pagerfanta\Pagerfanta;
class TagRepository extends EntityRepository
{
->where('e.user = :userId')->setParameter('userId', $userId);
}
- /**
- * Find Tags and return a Pager.
- *
- * @param int $userId
- *
- * @return Pagerfanta
- */
- public function findTags($userId)
- {
- $qb = $this->getQbForAllTags($userId);
-
- $pagerAdapter = new DoctrineORMAdapter($qb);
-
- return new Pagerfanta($pagerAdapter);
- }
-
/**
* Find Tags.
*