forked from wallabag/wallabag
Delete tag or tags by label
Tests not included
This commit is contained in:
committed by
Jeremy Benoist
parent
e71cef0bb8
commit
4da01f492b
@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user