aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Repository/EntryRepository.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2016-08-23 11:51:13 +0200
committerGitHub <noreply@github.com>2016-08-23 11:51:13 +0200
commit1bee9e0760c89756ebab0b67f9ab7efc5c6a709b (patch)
treecd6200f084675195aaa5789a3d0e1297eca1a94a /src/Wallabag/CoreBundle/Repository/EntryRepository.php
parent79efca1e6ff28362d4bd2713f68205294cdd07de (diff)
parent97e7ad4dc7bfc26cea334bc880a39e388d6848f3 (diff)
downloadwallabag-1bee9e0760c89756ebab0b67f9ab7efc5c6a709b.tar.gz
wallabag-1bee9e0760c89756ebab0b67f9ab7efc5c6a709b.tar.zst
wallabag-1bee9e0760c89756ebab0b67f9ab7efc5c6a709b.zip
Merge pull request #2218 from wallabag/api-delete-tags-1982
Delete tag or tags by label
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..fada40bb 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 public function removeTags($userId, $tags)
232 {
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