aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorJeremy Benoist <j0k3r@users.noreply.github.com>2016-12-13 09:08:34 +0100
committerGitHub <noreply@github.com>2016-12-13 09:08:34 +0100
commit15cc1838501955638f3ac6e0fb3235bb6ac4e26c (patch)
tree91876063c1abfcdf694750418d02378f48aca692 /src
parent375c9e2d3eddebf168e078f4dec7608a3c34245c (diff)
parent45c159b79883f3e5b2d1f8e5e3f09f0909da5d08 (diff)
downloadwallabag-15cc1838501955638f3ac6e0fb3235bb6ac4e26c.tar.gz
wallabag-15cc1838501955638f3ac6e0fb3235bb6ac4e26c.tar.zst
wallabag-15cc1838501955638f3ac6e0fb3235bb6ac4e26c.zip
Merge pull request #2699 from wallabag/remove-usertable-query
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 }