aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Repository/EntryRepository.php
diff options
context:
space:
mode:
authorThomas Citharel <github@tcit.fr>2019-06-06 14:09:23 +0200
committerGitHub <noreply@github.com>2019-06-06 14:09:23 +0200
commit9c7997db8ee3a743a3d4e5955320af9a7d388a7b (patch)
treeb9aec370eb8d9cd5b8d9c30a67c42d2526283102 /src/Wallabag/CoreBundle/Repository/EntryRepository.php
parentc19845a7ae5fe7c1ff22fd560c48e4af8b9da15a (diff)
parent35c7819cb63a9c481a2b612755d881d24d6586d0 (diff)
downloadwallabag-9c7997db8ee3a743a3d4e5955320af9a7d388a7b.tar.gz
wallabag-9c7997db8ee3a743a3d4e5955320af9a7d388a7b.tar.zst
wallabag-9c7997db8ee3a743a3d4e5955320af9a7d388a7b.zip
Show untagged entries count on tag list (#3993)
Show untagged entries count on tag list
Diffstat (limited to 'src/Wallabag/CoreBundle/Repository/EntryRepository.php')
-rw-r--r--src/Wallabag/CoreBundle/Repository/EntryRepository.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Repository/EntryRepository.php b/src/Wallabag/CoreBundle/Repository/EntryRepository.php
index 16c44885..d9675982 100644
--- a/src/Wallabag/CoreBundle/Repository/EntryRepository.php
+++ b/src/Wallabag/CoreBundle/Repository/EntryRepository.php
@@ -130,6 +130,21 @@ 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 (int) $this->getRawBuilderForUntaggedByUser($userId)
142 ->select('count(e.id)')
143 ->getQuery()
144 ->getSingleScalarResult();
145 }
146
147 /**
133 * Find Entries. 148 * Find Entries.
134 * 149 *
135 * @param int $userId 150 * @param int $userId