diff options
Diffstat (limited to 'src/Wallabag/CoreBundle/Repository')
-rw-r--r-- | src/Wallabag/CoreBundle/Repository/EntryRepository.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Repository/EntryRepository.php b/src/Wallabag/CoreBundle/Repository/EntryRepository.php index fada40bb..e5c21679 100644 --- a/src/Wallabag/CoreBundle/Repository/EntryRepository.php +++ b/src/Wallabag/CoreBundle/Repository/EntryRepository.php | |||
@@ -85,6 +85,22 @@ class EntryRepository extends EntityRepository | |||
85 | } | 85 | } |
86 | 86 | ||
87 | /** | 87 | /** |
88 | * Retrieves untagged entries for a user. | ||
89 | * | ||
90 | * @param int $userId | ||
91 | * | ||
92 | * @return QueryBuilder | ||
93 | */ | ||
94 | public function getBuilderForUntaggedByUser($userId) | ||
95 | { | ||
96 | return $this | ||
97 | ->getBuilderByUser($userId) | ||
98 | ->leftJoin('e.tags', 't') | ||
99 | ->groupBy('e.id') | ||
100 | ->having('count(t.id) = 0'); | ||
101 | } | ||
102 | |||
103 | /** | ||
88 | * Find Entries. | 104 | * Find Entries. |
89 | * | 105 | * |
90 | * @param int $userId | 106 | * @param int $userId |