forked from wallabag/wallabag
Show untagged entries count on tag list
Closes #3235 Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
This commit is contained in:
committed by
Jeremy Benoist
parent
7e5b7e029a
commit
ad51743e8b
@ -129,6 +129,20 @@ class EntryRepository extends EntityRepository
|
||||
->andWhere('t.id is null');
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve the number of untagged entries for a user.
|
||||
*
|
||||
* @param int $userId
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function countUntaggedEntriesByUser($userId)
|
||||
{
|
||||
return $this->getRawBuilderForUntaggedByUser($userId)
|
||||
->select('count(e.id)')
|
||||
->getSingleScalarResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* Find Entries.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user