aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Repository/EntryRepository.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2015-02-24 07:42:09 +0100
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2015-03-06 20:50:31 +0100
commit46bbd8d321e6a00131f0e6ed96fa6f3d693b3678 (patch)
tree331d511837716ec7a7956c35f51dc3a14a1ca11c /src/Wallabag/CoreBundle/Repository/EntryRepository.php
parent6c87418ff013cfd03093c3f01e20518e580d80bb (diff)
downloadwallabag-46bbd8d321e6a00131f0e6ed96fa6f3d693b3678.tar.gz
wallabag-46bbd8d321e6a00131f0e6ed96fa6f3d693b3678.tar.zst
wallabag-46bbd8d321e6a00131f0e6ed96fa6f3d693b3678.zip
relation between tags and entries
Diffstat (limited to 'src/Wallabag/CoreBundle/Repository/EntryRepository.php')
-rw-r--r--src/Wallabag/CoreBundle/Repository/EntryRepository.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Repository/EntryRepository.php b/src/Wallabag/CoreBundle/Repository/EntryRepository.php
index 005142fc..f6f60c6f 100644
--- a/src/Wallabag/CoreBundle/Repository/EntryRepository.php
+++ b/src/Wallabag/CoreBundle/Repository/EntryRepository.php
@@ -118,4 +118,15 @@ class EntryRepository extends EntityRepository
118 ->getQuery() 118 ->getQuery()
119 ->getResult(); 119 ->getResult();
120 } 120 }
121
122 public function findOneWithTags()
123 {
124 $qb = $this->createQueryBuilder('e')
125 ->innerJoin('e.tags', 't')
126 ->addSelect('t');
127
128 return $qb
129 ->getQuery()
130 ->getOneOrNullResult();
131 }
121} 132}