3 namespace Wallabag\CoreBundle\Entity
;
5 use Doctrine\ORM\Mapping
as ORM
;
6 use JMS\Serializer\Annotation\XmlRoot
;
7 use JMS\Serializer\Annotation\ExclusionPolicy
;
8 use JMS\Serializer\Annotation\Expose
;
14 * @ORM\Table(name="tag")
15 * @ORM\Entity(repositoryClass="Wallabag\CoreBundle\Repository\TagRepository")
16 * @ExclusionPolicy("all")
24 * @ORM\Column(name="id", type="integer")
26 * @ORM\GeneratedValue(strategy="AUTO")
34 * @ORM\Column(name="label", type="text")
39 * @ORM\ManyToMany(targetEntity="Entry", mappedBy="tags", cascade={"persist", "merge"})
48 public function getId()
56 * @param string $label
59 public function setLabel($label)
61 $this->label
= $label;
71 public function getLabel()