mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-15 09:57:41 +01:00
Merge pull request #2699 from wallabag/remove-usertable-query
Removed user join in query builder
This commit is contained in:
commit
15cc183850
@ -20,8 +20,7 @@ class EntryRepository extends EntityRepository
|
||||
private function getBuilderByUser($userId)
|
||||
{
|
||||
return $this->createQueryBuilder('e')
|
||||
->leftJoin('e.user', 'u')
|
||||
->andWhere('u.id = :userId')->setParameter('userId', $userId)
|
||||
->andWhere('e.user = :userId')->setParameter('userId', $userId)
|
||||
->orderBy('e.createdAt', 'desc')
|
||||
;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user