1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-10-05 19:31:02 +00:00

add search argument and limit option to list users command

This commit is contained in:
Nicolas Hart 2017-07-31 23:20:41 +02:00
parent af31cfed76
commit f7a4b44136
3 changed files with 83 additions and 3 deletions

View file

@ -55,6 +55,19 @@ class UserRepository extends EntityRepository
->getSingleScalarResult();
}
/**
* Count how many users are existing.
*
* @return int
*/
public function getSumUsers()
{
return $this->createQueryBuilder('u')
->select('count(u)')
->getQuery()
->getSingleScalarResult();
}
/**
* Retrieves users filtered with a search term.
*