aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Repository/EntryRepository.php
diff options
context:
space:
mode:
authorJeremy Benoist <j0k3r@users.noreply.github.com>2016-08-28 15:56:17 +0200
committerGitHub <noreply@github.com>2016-08-28 15:56:16 +0200
commit13d44ca766b1020327f0b9b005dc2e95deb156a1 (patch)
treed21dcb2f718cb9c593ed20d73ca4164ee859f165 /src/Wallabag/CoreBundle/Repository/EntryRepository.php
parent8635ab1cd1ae90d7757a59444ef80759a040eccf (diff)
parent0184e09a66dbc400d831ba9cc045924cb16722e9 (diff)
downloadwallabag-13d44ca766b1020327f0b9b005dc2e95deb156a1.tar.gz
wallabag-13d44ca766b1020327f0b9b005dc2e95deb156a1.tar.zst
wallabag-13d44ca766b1020327f0b9b005dc2e95deb156a1.zip
Merge pull request #2243 from wallabag/feature-untagged-entries
Add untagged entries
Diffstat (limited to 'src/Wallabag/CoreBundle/Repository/EntryRepository.php')
-rw-r--r--src/Wallabag/CoreBundle/Repository/EntryRepository.php16
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