forked from wallabag/wallabag
Add ability to reset some datas
- annotations - tags - entries
This commit is contained in:
@ -52,6 +52,23 @@ class TagRepository extends EntityRepository
|
||||
->getArrayResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* Find all tags.
|
||||
*
|
||||
* @param int $userId
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function findAllTags($userId)
|
||||
{
|
||||
return $this->createQueryBuilder('t')
|
||||
->select('t')
|
||||
->leftJoin('t.entries', 'e')
|
||||
->where('e.user = :userId')->setParameter('userId', $userId)
|
||||
->getQuery()
|
||||
->getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* Used only in test case to get a tag for our entry.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user