1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-10-20 19:52:09 +00:00

Delete tag or tags by label

Tests not included
This commit is contained in:
Thomas Citharel 2016-06-25 18:37:41 +02:00 committed by Jeremy Benoist
parent e71cef0bb8
commit 4da01f492b
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
2 changed files with 74 additions and 0 deletions

View file

@ -222,6 +222,19 @@ class EntryRepository extends EntityRepository
$this->getEntityManager()->flush();
}
/**
* Remove tags from all user entries
*
* @param int $userId
* @param Array<Tag> $tags
*/
public function removeTags($userId, $tags) {
foreach ($tags as $tag) {
$this->removeTag($userId, $tag);
}
}
/**
* Find all entries that are attached to a give tag id.
*