+ * @Expose
+ * @Gedmo\Slug(fields={"label"})
+ * @ORM\Column(length=128, unique=true)
+ */
+ private $slug;
+
+ /**
+ * @ORM\ManyToMany(targetEntity="Entry", mappedBy="tags", cascade={"persist"})
+ */
+ private $entries;
+
+ public function __construct()
+ {
+ $this->entries = new ArrayCollection();
+ }
+
+ public function __toString()
+ {
+ return $this->label;
+ }
+
+ /**
+ * Get id.