aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Repository/EntryRepository.php
diff options
context:
space:
mode:
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}