X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FRepository%2FEntryRepository.php;h=63c4c3be9f0f21f021a2c9d010f9fb3085499439;hb=4da01f492b20312461d3f4f612a98e3b52c76fa9;hp=e9351d85ef439451584a7b2315c5a1fbc56854b9;hpb=e71cef0bb81c80575f38c4ea040716efdfcb17f0;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/Repository/EntryRepository.php b/src/Wallabag/CoreBundle/Repository/EntryRepository.php index e9351d85..63c4c3be 100644 --- a/src/Wallabag/CoreBundle/Repository/EntryRepository.php +++ b/src/Wallabag/CoreBundle/Repository/EntryRepository.php @@ -222,6 +222,19 @@ class EntryRepository extends EntityRepository $this->getEntityManager()->flush(); } + /** + * Remove tags from all user entries + * + * @param int $userId + * @param Array $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. *