aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Entity/Entry.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/CoreBundle/Entity/Entry.php')
-rw-r--r--src/Wallabag/CoreBundle/Entity/Entry.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Entity/Entry.php b/src/Wallabag/CoreBundle/Entity/Entry.php
index 937213b4..4f57eb0a 100644
--- a/src/Wallabag/CoreBundle/Entity/Entry.php
+++ b/src/Wallabag/CoreBundle/Entity/Entry.php
@@ -4,17 +4,21 @@ namespace Wallabag\CoreBundle\Entity;
4 4
5use Doctrine\ORM\Mapping as ORM; 5use Doctrine\ORM\Mapping as ORM;
6use Symfony\Component\Validator\Constraints as Assert; 6use Symfony\Component\Validator\Constraints as Assert;
7use Hateoas\Configuration\Annotation as Hateoas;
8use JMS\Serializer\Annotation\XmlRoot;
7 9
8/** 10/**
9 * Entry 11 * Entry
10 * 12 *
13 * @XmlRoot("entry")
11 * @ORM\Entity(repositoryClass="Wallabag\CoreBundle\Repository\EntryRepository") 14 * @ORM\Entity(repositoryClass="Wallabag\CoreBundle\Repository\EntryRepository")
12 * @ORM\Table(name="entry") 15 * @ORM\Table(name="entry")
13 * @ORM\HasLifecycleCallbacks() 16 * @ORM\HasLifecycleCallbacks()
14 * 17 * @Hateoas\Relation("self", href = "expr('/api/entries/' ~ object.getId())")
15 */ 18 */
16class Entry 19class Entry
17{ 20{
21 /** @Serializer\XmlAttribute */
18 /** 22 /**
19 * @var integer 23 * @var integer
20 * 24 *