aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Repository/EntryRepository.php
diff options
context:
space:
mode:
authorKevin Decherf <kevin@kdecherf.com>2018-09-02 16:43:49 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2019-06-05 17:03:51 +0200
commitad51743e8bd15782a25c5e717c87786d34091ce3 (patch)
treec3f52d679aa2ed1b8c364015b755bf554cc85509 /src/Wallabag/CoreBundle/Repository/EntryRepository.php
parent7e5b7e029a5ba7aadc8128243afaa00e2a870645 (diff)
downloadwallabag-ad51743e8bd15782a25c5e717c87786d34091ce3.tar.gz
wallabag-ad51743e8bd15782a25c5e717c87786d34091ce3.tar.zst
wallabag-ad51743e8bd15782a25c5e717c87786d34091ce3.zip
Show untagged entries count on tag list
Closes #3235 Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
Diffstat (limited to 'src/Wallabag/CoreBundle/Repository/EntryRepository.php')
-rw-r--r--src/Wallabag/CoreBundle/Repository/EntryRepository.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Repository/EntryRepository.php b/src/Wallabag/CoreBundle/Repository/EntryRepository.php
index 16c44885..77d88c9c 100644
--- a/src/Wallabag/CoreBundle/Repository/EntryRepository.php
+++ b/src/Wallabag/CoreBundle/Repository/EntryRepository.php
@@ -130,6 +130,20 @@ class EntryRepository extends EntityRepository
130 } 130 }
131 131
132 /** 132 /**
133 * Retrieve the number of untagged entries for a user.
134 *
135 * @param int $userId
136 *
137 * @return int
138 */
139 public function countUntaggedEntriesByUser($userId)
140 {
141 return $this->getRawBuilderForUntaggedByUser($userId)
142 ->select('count(e.id)')
143 ->getSingleScalarResult();
144 }
145
146 /**
133 * Find Entries. 147 * Find Entries.
134 * 148 *
135 * @param int $userId 149 * @param int $userId