1
0
Fork 0
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:
Jeremy Benoist 2016-10-01 09:26:32 +02:00
parent e8331dd9e7
commit 206bade58a
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
18 changed files with 406 additions and 22 deletions

View file

@ -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.
*