diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-08-21 07:38:18 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-08-21 07:38:18 +0200 |
commit | 2b7a4889178b35b64e0297d12abef79dd0b70df4 (patch) | |
tree | 843c586649b8a4f4d5f7f667f64668ad774a9c93 /src/Wallabag/CoreBundle/Repository | |
parent | e1779760999f676cb7a74a201bc2a389959702d4 (diff) | |
download | wallabag-2b7a4889178b35b64e0297d12abef79dd0b70df4.tar.gz wallabag-2b7a4889178b35b64e0297d12abef79dd0b70df4.tar.zst wallabag-2b7a4889178b35b64e0297d12abef79dd0b70df4.zip |
filters: adapt queryBuilder for 'all' view
Diffstat (limited to 'src/Wallabag/CoreBundle/Repository')
-rw-r--r-- | src/Wallabag/CoreBundle/Repository/EntryRepository.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Repository/EntryRepository.php b/src/Wallabag/CoreBundle/Repository/EntryRepository.php index 5538ae82..e764e8f7 100644 --- a/src/Wallabag/CoreBundle/Repository/EntryRepository.php +++ b/src/Wallabag/CoreBundle/Repository/EntryRepository.php | |||
@@ -25,6 +25,20 @@ class EntryRepository extends EntityRepository | |||
25 | } | 25 | } |
26 | 26 | ||
27 | /** | 27 | /** |
28 | * Retrieves all entries for a user. | ||
29 | * | ||
30 | * @param int $userId | ||
31 | * | ||
32 | * @return QueryBuilder | ||
33 | */ | ||
34 | public function getBuilderForAllByUser($userId) | ||
35 | { | ||
36 | return $this | ||
37 | ->getBuilderByUser($userId) | ||
38 | ; | ||
39 | } | ||
40 | |||
41 | /** | ||
28 | * Retrieves unread entries for a user. | 42 | * Retrieves unread entries for a user. |
29 | * | 43 | * |
30 | * @param int $userId | 44 | * @param int $userId |