aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Entity/Tag.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/CoreBundle/Entity/Tag.php')
-rw-r--r--src/Wallabag/CoreBundle/Entity/Tag.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/Wallabag/CoreBundle/Entity/Tag.php b/src/Wallabag/CoreBundle/Entity/Tag.php
index a6dc8c50..9fb2f94f 100644
--- a/src/Wallabag/CoreBundle/Entity/Tag.php
+++ b/src/Wallabag/CoreBundle/Entity/Tag.php
@@ -13,7 +13,13 @@ use JMS\Serializer\Annotation\XmlRoot;
13 * Tag. 13 * Tag.
14 * 14 *
15 * @XmlRoot("tag") 15 * @XmlRoot("tag")
16 * @ORM\Table(name="`tag`") 16 * @ORM\Table(
17 * name="`tag`",
18 * options={"collate"="utf8mb4_bin", "charset"="utf8mb4"},
19 * indexes={
20 * @ORM\Index(name="tag_label", columns={"label"}, options={"lengths"={255}}),
21 * }
22 * )
17 * @ORM\Entity(repositoryClass="Wallabag\CoreBundle\Repository\TagRepository") 23 * @ORM\Entity(repositoryClass="Wallabag\CoreBundle\Repository\TagRepository")
18 * @ExclusionPolicy("all") 24 * @ExclusionPolicy("all")
19 */ 25 */
@@ -98,9 +104,6 @@ class Tag
98 return $this->slug; 104 return $this->slug;
99 } 105 }
100 106
101 /**
102 * @param Entry $entry
103 */
104 public function addEntry(Entry $entry) 107 public function addEntry(Entry $entry)
105 { 108 {
106 if ($this->entries->contains($entry)) { 109 if ($this->entries->contains($entry)) {
@@ -111,9 +114,6 @@ class Tag
111 $entry->addTag($this); 114 $entry->addTag($this);
112 } 115 }
113 116
114 /**
115 * @param Entry $entry
116 */
117 public function removeEntry(Entry $entry) 117 public function removeEntry(Entry $entry)
118 { 118 {
119 if (!$this->entries->contains($entry)) { 119 if (!$this->entries->contains($entry)) {