aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/UserBundle
diff options
context:
space:
mode:
authorJérémy Benoist <j0k3r@users.noreply.github.com>2017-08-02 07:25:02 +0200
committerGitHub <noreply@github.com>2017-08-02 07:25:02 +0200
commit8b5bef48d5e5609c0c89a99f34fe56919125fa68 (patch)
tree6e0b786d397dbafdc1e6845e6ce59344f8d65f76 /src/Wallabag/UserBundle
parent882da5c5eb283cbc7a869182b26a69b8fbebda2b (diff)
parentf7a4b441361404b378c30b7788b3699c208537ad (diff)
downloadwallabag-8b5bef48d5e5609c0c89a99f34fe56919125fa68.tar.gz
wallabag-8b5bef48d5e5609c0c89a99f34fe56919125fa68.tar.zst
wallabag-8b5bef48d5e5609c0c89a99f34fe56919125fa68.zip
Merge pull request #3301 from nclsHart/list-user-command
Add list users command
Diffstat (limited to 'src/Wallabag/UserBundle')
-rw-r--r--src/Wallabag/UserBundle/Repository/UserRepository.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Wallabag/UserBundle/Repository/UserRepository.php b/src/Wallabag/UserBundle/Repository/UserRepository.php
index 75cbeef2..be693d3b 100644
--- a/src/Wallabag/UserBundle/Repository/UserRepository.php
+++ b/src/Wallabag/UserBundle/Repository/UserRepository.php
@@ -56,6 +56,19 @@ class UserRepository extends EntityRepository
56 } 56 }
57 57
58 /** 58 /**
59 * Count how many users are existing.
60 *
61 * @return int
62 */
63 public function getSumUsers()
64 {
65 return $this->createQueryBuilder('u')
66 ->select('count(u)')
67 ->getQuery()
68 ->getSingleScalarResult();
69 }
70
71 /**
59 * Retrieves users filtered with a search term. 72 * Retrieves users filtered with a search term.
60 * 73 *
61 * @param string $term 74 * @param string $term