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:
parent
e71cef0bb8
commit
4da01f492b
2 changed files with 74 additions and 0 deletions
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue