mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-24 00:20:28 +00:00
Merge pull request #2699 from wallabag/remove-usertable-query
Removed user join in query builder
This commit is contained in:
commit
15cc183850
1 changed files with 1 additions and 2 deletions
|
@ -20,8 +20,7 @@ class EntryRepository extends EntityRepository
|
||||||
private function getBuilderByUser($userId)
|
private function getBuilderByUser($userId)
|
||||||
{
|
{
|
||||||
return $this->createQueryBuilder('e')
|
return $this->createQueryBuilder('e')
|
||||||
->leftJoin('e.user', 'u')
|
->andWhere('e.user = :userId')->setParameter('userId', $userId)
|
||||||
->andWhere('u.id = :userId')->setParameter('userId', $userId)
|
|
||||||
->orderBy('e.createdAt', 'desc')
|
->orderBy('e.createdAt', 'desc')
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue