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:
parent
af31cfed76
commit
f7a4b44136
3 changed files with 83 additions and 3 deletions
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue