aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2016-12-12 22:51:29 +0100
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2016-12-12 22:51:29 +0100
commit45c159b79883f3e5b2d1f8e5e3f09f0909da5d08 (patch)
treef632ce8f61696f62cbea9222f5dc8266e48517f8 /src
parent2c1eed8051160499d40ed033c83dd003c81b371e (diff)
downloadwallabag-45c159b79883f3e5b2d1f8e5e3f09f0909da5d08.tar.gz
wallabag-45c159b79883f3e5b2d1f8e5e3f09f0909da5d08.tar.zst
wallabag-45c159b79883f3e5b2d1f8e5e3f09f0909da5d08.zip
Removed user join in query builder
Diffstat (limited to 'src')
-rw-r--r--src/Wallabag/CoreBundle/Repository/EntryRepository.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Repository/EntryRepository.php b/src/Wallabag/CoreBundle/Repository/EntryRepository.php
index 47e24d6b..553ad6ab 100644
--- a/src/Wallabag/CoreBundle/Repository/EntryRepository.php
+++ b/src/Wallabag/CoreBundle/Repository/EntryRepository.php
@@ -20,8 +20,7 @@ class EntryRepository extends EntityRepository
20 private function getBuilderByUser($userId) 20 private function getBuilderByUser($userId)
21 { 21 {
22 return $this->createQueryBuilder('e') 22 return $this->createQueryBuilder('e')
23 ->leftJoin('e.user', 'u') 23 ->andWhere('e.user = :userId')->setParameter('userId', $userId)
24 ->andWhere('u.id = :userId')->setParameter('userId', $userId)
25 ->orderBy('e.createdAt', 'desc') 24 ->orderBy('e.createdAt', 'desc')
26 ; 25 ;
27 } 26 }