forked from wallabag/wallabag
add search argument and limit option to list users command
This commit is contained in:
@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user