aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Repository/EntryRepository.php
diff options
context:
space:
mode:
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 b5e35eff..3a1f19b4 100644
--- a/src/Wallabag/CoreBundle/Repository/EntryRepository.php
+++ b/src/Wallabag/CoreBundle/Repository/EntryRepository.php
@@ -116,6 +116,20 @@ class EntryRepository extends EntityRepository
116 } 116 }
117 117
118 /** 118 /**
119 * Retrieve the number of untagged entries for a user.
120 *
121 * @param int $userId
122 *
123 * @return int
124 */
125 public function countUntaggedEntriesByUser($userId)
126 {
127 return $this->getRawBuilderForUntaggedByUser($userId)
128 ->select('count(e.id)')
129 ->getSingleScalarResult();
130 }
131
132 /**
119 * Find Entries. 133 * Find Entries.
120 * 134 *
121 * @param int $userId 135 * @param int $userId