1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-10-15 19:42:08 +00:00

Fix tags listing

Fix #1994
* Remove unused method in tag repository
This commit is contained in:
Nicolas Lœuillet 2016-05-02 21:32:47 +02:00
parent ba9fee0855
commit 2a007fe43d
No known key found for this signature in database
GPG key ID: 5656BE27E1E34D0A
4 changed files with 3 additions and 21 deletions

View file

@ -3,8 +3,6 @@
namespace Wallabag\CoreBundle\Repository;
use Doctrine\ORM\EntityRepository;
use Pagerfanta\Adapter\DoctrineORMAdapter;
use Pagerfanta\Pagerfanta;
class TagRepository extends EntityRepository
{
@ -22,22 +20,6 @@ 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.
*