diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-08-19 11:46:21 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2015-08-22 12:40:48 +0200 |
commit | 7244d6cb61912b80341595c56cc22d9bb56e6251 (patch) | |
tree | fdb958dd7a798ec52c013edd75df9e4233c08934 /src/Wallabag/CoreBundle/Entity | |
parent | 109d67dbb16478f927c3d6a46ab61ea9994aafae (diff) | |
download | wallabag-7244d6cb61912b80341595c56cc22d9bb56e6251.tar.gz wallabag-7244d6cb61912b80341595c56cc22d9bb56e6251.tar.zst wallabag-7244d6cb61912b80341595c56cc22d9bb56e6251.zip |
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 | */ |