aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Repository/EntryRepository.php
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2016-06-25 18:37:41 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-08-23 07:26:58 +0200
commit4da01f492b20312461d3f4f612a98e3b52c76fa9 (patch)
tree1084c9b0b801cb0f43b4c0918c43826d559c70f7 /src/Wallabag/CoreBundle/Repository/EntryRepository.php
parente71cef0bb81c80575f38c4ea040716efdfcb17f0 (diff)
downloadwallabag-4da01f492b20312461d3f4f612a98e3b52c76fa9.tar.gz
wallabag-4da01f492b20312461d3f4f612a98e3b52c76fa9.tar.zst
wallabag-4da01f492b20312461d3f4f612a98e3b52c76fa9.zip
Delete tag or tags by label
Tests not included
Diffstat (limited to 'src/Wallabag/CoreBundle/Repository/EntryRepository.php')
-rw-r--r--src/Wallabag/CoreBundle/Repository/EntryRepository.php13
1 files changed, 13 insertions, 0 deletions
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
@@ -223,6 +223,19 @@ class EntryRepository extends EntityRepository
223 } 223 }
224 224
225 /** 225 /**
226 * Remove tags from all user entries
227 *
228 * @param int $userId
229 * @param Array<Tag> $tags
230 */
231
232 public function removeTags($userId, $tags) {
233 foreach ($tags as $tag) {
234 $this->removeTag($userId, $tag);
235 }
236 }
237
238 /**
226 * Find all entries that are attached to a give tag id. 239 * Find all entries that are attached to a give tag id.
227 * 240 *
228 * @param int $userId 241 * @param int $userId