diff options
Diffstat (limited to 'src/Wallabag/CoreBundle/Repository/EntryRepository.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Repository/EntryRepository.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Repository/EntryRepository.php b/src/Wallabag/CoreBundle/Repository/EntryRepository.php index 10fb9bf7..a8085ac9 100644 --- a/src/Wallabag/CoreBundle/Repository/EntryRepository.php +++ b/src/Wallabag/CoreBundle/Repository/EntryRepository.php | |||
@@ -124,11 +124,14 @@ class EntryRepository extends EntityRepository | |||
124 | * | 124 | * |
125 | * @return Entry | 125 | * @return Entry |
126 | */ | 126 | */ |
127 | public function findOneWithTags() | 127 | public function findOneWithTags($userId) |
128 | { | 128 | { |
129 | $qb = $this->createQueryBuilder('e') | 129 | $qb = $this->createQueryBuilder('e') |
130 | ->innerJoin('e.tags', 't') | 130 | ->innerJoin('e.tags', 't') |
131 | ->addSelect('t'); | 131 | ->addSelect('t') |
132 | ->where('t.user=:userId')->setParameter('userId', 1); | ||
133 | |||
134 | return $qb->getQuery()->getOneOrNullResult(); | ||
132 | 135 | ||
133 | return $qb | 136 | return $qb |
134 | ->getQuery() | 137 | ->getQuery() |