diff options
Diffstat (limited to 'src/Wallabag/CoreBundle/Repository/EntryRepository.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Repository/EntryRepository.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Wallabag/CoreBundle/Repository/EntryRepository.php b/src/Wallabag/CoreBundle/Repository/EntryRepository.php index 77d88c9c..d9675982 100644 --- a/src/Wallabag/CoreBundle/Repository/EntryRepository.php +++ b/src/Wallabag/CoreBundle/Repository/EntryRepository.php | |||
@@ -131,15 +131,16 @@ class EntryRepository extends EntityRepository | |||
131 | 131 | ||
132 | /** | 132 | /** |
133 | * Retrieve the number of untagged entries for a user. | 133 | * Retrieve the number of untagged entries for a user. |
134 | * | 134 | * |
135 | * @param int $userId | 135 | * @param int $userId |
136 | * | 136 | * |
137 | * @return int | 137 | * @return int |
138 | */ | 138 | */ |
139 | public function countUntaggedEntriesByUser($userId) | 139 | public function countUntaggedEntriesByUser($userId) |
140 | { | 140 | { |
141 | return $this->getRawBuilderForUntaggedByUser($userId) | 141 | return (int) $this->getRawBuilderForUntaggedByUser($userId) |
142 | ->select('count(e.id)') | 142 | ->select('count(e.id)') |
143 | ->getQuery() | ||
143 | ->getSingleScalarResult(); | 144 | ->getSingleScalarResult(); |
144 | } | 145 | } |
145 | 146 | ||