diff options
author | Jeremy Benoist <j0k3r@users.noreply.github.com> | 2015-08-22 12:56:42 +0200 |
---|---|---|
committer | Jeremy Benoist <j0k3r@users.noreply.github.com> | 2015-08-22 12:56:42 +0200 |
commit | ec00964de22a338d8f814c5440f8e09f542fdbbf (patch) | |
tree | 4dc70780d5b8278825f423d247b8486a52f7d265 /src/Wallabag/CoreBundle/Entity | |
parent | f9d5155abf1bc63fae91043a5e4c73ac3a4f0ba9 (diff) | |
parent | 7244d6cb61912b80341595c56cc22d9bb56e6251 (diff) | |
download | wallabag-ec00964de22a338d8f814c5440f8e09f542fdbbf.tar.gz wallabag-ec00964de22a338d8f814c5440f8e09f542fdbbf.tar.zst wallabag-ec00964de22a338d8f814c5440f8e09f542fdbbf.zip |
Merge pull request #1372 from wallabag/v2-assign-tags
assign tags to an entry
Diffstat (limited to 'src/Wallabag/CoreBundle/Entity')
-rw-r--r-- | src/Wallabag/CoreBundle/Entity/Tag.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Entity/Tag.php b/src/Wallabag/CoreBundle/Entity/Tag.php index 6f005314..97c4579f 100644 --- a/src/Wallabag/CoreBundle/Entity/Tag.php +++ b/src/Wallabag/CoreBundle/Entity/Tag.php | |||
@@ -96,6 +96,11 @@ class Tag | |||
96 | $this->entries[] = $entry; | 96 | $this->entries[] = $entry; |
97 | } | 97 | } |
98 | 98 | ||
99 | public function hasEntry($entry) | ||
100 | { | ||
101 | return $this->entries->contains($entry); | ||
102 | } | ||
103 | |||
99 | /** | 104 | /** |
100 | * @return User | 105 | * @return User |
101 | */ | 106 | */ |