diff options
author | Thomas Citharel <tcit@tcit.fr> | 2016-02-10 18:40:15 +0100 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2016-02-10 18:40:15 +0100 |
commit | e686a76d343a3745c3dfe8010d9e5784e56bb17c (patch) | |
tree | 4c1258fd527d920ec40552e673d011f6e50ed619 /src/Wallabag/CoreBundle/Repository/TagRepository.php | |
parent | 567421af5019bf5937aa2b4214b405d87a1f1f86 (diff) | |
download | wallabag-e686a76d343a3745c3dfe8010d9e5784e56bb17c.tar.gz wallabag-e686a76d343a3745c3dfe8010d9e5784e56bb17c.tar.zst wallabag-e686a76d343a3745c3dfe8010d9e5784e56bb17c.zip |
improve test and change method name. Also, display number of entries for each tag
Diffstat (limited to 'src/Wallabag/CoreBundle/Repository/TagRepository.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Repository/TagRepository.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Repository/TagRepository.php b/src/Wallabag/CoreBundle/Repository/TagRepository.php index 8d9cf85c..afeb985b 100644 --- a/src/Wallabag/CoreBundle/Repository/TagRepository.php +++ b/src/Wallabag/CoreBundle/Repository/TagRepository.php | |||
@@ -57,7 +57,7 @@ class TagRepository extends EntityRepository | |||
57 | * | 57 | * |
58 | * @return Tag | 58 | * @return Tag |
59 | */ | 59 | */ |
60 | public function findOnebyEntryAndLabel($entry, $label) | 60 | public function findOneByEntryAndTagLabel($entry, $label) |
61 | { | 61 | { |
62 | return $this->createQueryBuilder('t') | 62 | return $this->createQueryBuilder('t') |
63 | ->leftJoin('t.entries', 'e') | 63 | ->leftJoin('t.entries', 'e') |