diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-05-02 21:32:47 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-05-02 21:32:47 +0200 |
commit | 2a007fe43d937043c2c41b011f98652bd6e138a7 (patch) | |
tree | 298b57a87da662306505adac14c5b15a81190fe2 /src/Wallabag/CoreBundle/Repository/TagRepository.php | |
parent | ba9fee085597932f451741b47ad7013e7eb4323b (diff) | |
download | wallabag-2a007fe43d937043c2c41b011f98652bd6e138a7.tar.gz wallabag-2a007fe43d937043c2c41b011f98652bd6e138a7.tar.zst wallabag-2a007fe43d937043c2c41b011f98652bd6e138a7.zip |
Fix tags listing
Fix #1994
* Remove unused method in tag repository
Diffstat (limited to 'src/Wallabag/CoreBundle/Repository/TagRepository.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Repository/TagRepository.php | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/Wallabag/CoreBundle/Repository/TagRepository.php b/src/Wallabag/CoreBundle/Repository/TagRepository.php index afeb985b..c567317e 100644 --- a/src/Wallabag/CoreBundle/Repository/TagRepository.php +++ b/src/Wallabag/CoreBundle/Repository/TagRepository.php | |||
@@ -3,8 +3,6 @@ | |||
3 | namespace Wallabag\CoreBundle\Repository; | 3 | namespace Wallabag\CoreBundle\Repository; |
4 | 4 | ||
5 | use Doctrine\ORM\EntityRepository; | 5 | use Doctrine\ORM\EntityRepository; |
6 | use Pagerfanta\Adapter\DoctrineORMAdapter; | ||
7 | use Pagerfanta\Pagerfanta; | ||
8 | 6 | ||
9 | class TagRepository extends EntityRepository | 7 | class TagRepository extends EntityRepository |
10 | { | 8 | { |
@@ -23,22 +21,6 @@ class TagRepository extends EntityRepository | |||
23 | } | 21 | } |
24 | 22 | ||
25 | /** | 23 | /** |
26 | * Find Tags and return a Pager. | ||
27 | * | ||
28 | * @param int $userId | ||
29 | * | ||
30 | * @return Pagerfanta | ||
31 | */ | ||
32 | public function findTags($userId) | ||
33 | { | ||
34 | $qb = $this->getQbForAllTags($userId); | ||
35 | |||
36 | $pagerAdapter = new DoctrineORMAdapter($qb); | ||
37 | |||
38 | return new Pagerfanta($pagerAdapter); | ||
39 | } | ||
40 | |||
41 | /** | ||
42 | * Find Tags. | 24 | * Find Tags. |
43 | * | 25 | * |
44 | * @param int $userId | 26 | * @param int $userId |