mirror of
https://github.com/wallabag/wallabag.git
synced 2025-10-15 19:42:08 +00:00
Add ability to reset some datas
- annotations - tags - entries
This commit is contained in:
parent
e8331dd9e7
commit
206bade58a
18 changed files with 406 additions and 22 deletions
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue