diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-02-20 11:45:38 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-03-06 20:50:29 +0100 |
commit | 0f00688096645606c7806a619ca27e6f30ce820c (patch) | |
tree | e4d37db4fa55de871d31625c1c508f899cc8a474 /src/Wallabag/CoreBundle/Repository | |
parent | 73b774438395d0ed74d0fd863194d2ebfb68d9ce (diff) | |
download | wallabag-0f00688096645606c7806a619ca27e6f30ce820c.tar.gz wallabag-0f00688096645606c7806a619ca27e6f30ce820c.tar.zst wallabag-0f00688096645606c7806a619ca27e6f30ce820c.zip |
first draft of hypermedia implementation
Diffstat (limited to 'src/Wallabag/CoreBundle/Repository')
-rw-r--r-- | src/Wallabag/CoreBundle/Repository/EntryRepository.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Repository/EntryRepository.php b/src/Wallabag/CoreBundle/Repository/EntryRepository.php index bedc90d2..32394d2a 100644 --- a/src/Wallabag/CoreBundle/Repository/EntryRepository.php +++ b/src/Wallabag/CoreBundle/Repository/EntryRepository.php | |||
@@ -102,8 +102,7 @@ class EntryRepository extends EntityRepository | |||
102 | public function findEntries($userId, $isArchived = null, $isStarred = null, $isDeleted = null, $sort = 'created', $order = 'ASC') | 102 | public function findEntries($userId, $isArchived = null, $isStarred = null, $isDeleted = null, $sort = 'created', $order = 'ASC') |
103 | { | 103 | { |
104 | $qb = $this->createQueryBuilder('e') | 104 | $qb = $this->createQueryBuilder('e') |
105 | ->leftJoin('e.user', 'u') | 105 | ->where('e.user =:userId')->setParameter('userId', $userId); |
106 | ->where('u.id =:userId')->setParameter('userId', $userId); | ||
107 | 106 | ||
108 | if (null !== $isArchived) { | 107 | if (null !== $isArchived) { |
109 | $qb->andWhere('e.isArchived =:isArchived')->setParameter('isArchived', (bool) $isArchived); | 108 | $qb->andWhere('e.isArchived =:isArchived')->setParameter('isArchived', (bool) $isArchived); |