X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FEntity%2FTag.php;h=92442df6ddb00ad823f43bc53f0c534d6be0760a;hb=34437f408c5b7b590aded6795d7ce01bfbfc7711;hp=9ae5867c6981ceccb04fbff2c24e1ef2d5a1567e;hpb=f37d1427a1b75f9d7a2e273b2e9fb0e895a769ab;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/Entity/Tag.php b/src/Wallabag/CoreBundle/Entity/Tag.php index 9ae5867c..92442df6 100644 --- a/src/Wallabag/CoreBundle/Entity/Tag.php +++ b/src/Wallabag/CoreBundle/Entity/Tag.php @@ -9,17 +9,17 @@ use JMS\Serializer\Annotation\Expose; use Doctrine\Common\Collections\ArrayCollection; /** - * Tag + * Tag. * * @XmlRoot("tag") - * @ORM\Table(name="tag") + * @ORM\Table * @ORM\Entity(repositoryClass="Wallabag\CoreBundle\Repository\TagRepository") * @ExclusionPolicy("all") */ class Tag { /** - * @var integer + * @var int * * @Expose * @ORM\Column(name="id", type="integer") @@ -51,10 +51,16 @@ class Tag $this->user = $user; $this->entries = new ArrayCollection(); } + + public function __toString() + { + return $this->label; + } + /** - * Get id + * Get id. * - * @return integer + * @return int */ public function getId() { @@ -62,9 +68,10 @@ class Tag } /** - * Set label + * Set label. + * + * @param string $label * - * @param string $label * @return Tag */ public function setLabel($label) @@ -75,7 +82,7 @@ class Tag } /** - * Get label + * Get label. * * @return string */