From e9023a16eba20655965b658ce4dbb2229dfe2546 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nicolas=20L=C5=93uillet?= Date: Tue, 3 May 2016 09:39:34 +0200 Subject: [PATCH] Remove useless method --- .../CoreBundle/Repository/TagRepository.php | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/src/Wallabag/CoreBundle/Repository/TagRepository.php b/src/Wallabag/CoreBundle/Repository/TagRepository.php index c567317e..abf915fe 100644 --- a/src/Wallabag/CoreBundle/Repository/TagRepository.php +++ b/src/Wallabag/CoreBundle/Repository/TagRepository.php @@ -6,20 +6,6 @@ use Doctrine\ORM\EntityRepository; class TagRepository extends EntityRepository { - /** - * Return only the QueryBuilder to retrieve all tags for a given user. - * - * @param int $userId - * - * @return QueryBuilder - */ - private function getQbForAllTags($userId) - { - return $this->createQueryBuilder('t') - ->leftJoin('t.entries', 'e') - ->where('e.user = :userId')->setParameter('userId', $userId); - } - /** * Find Tags. * @@ -29,7 +15,9 @@ class TagRepository extends EntityRepository */ public function findAllTags($userId) { - return $this->getQbForAllTags($userId) + return $this->createQueryBuilder('t') + ->leftJoin('t.entries', 'e') + ->where('e.user = :userId')->setParameter('userId', $userId) ->getQuery() ->getResult(); } -- 2.41.0