diff options
Diffstat (limited to 'src/Wallabag/CoreBundle/Entity')
-rw-r--r-- | src/Wallabag/CoreBundle/Entity/Entry.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Entity/Entry.php b/src/Wallabag/CoreBundle/Entity/Entry.php index 7276b437..54f74a14 100644 --- a/src/Wallabag/CoreBundle/Entity/Entry.php +++ b/src/Wallabag/CoreBundle/Entity/Entry.php | |||
@@ -122,6 +122,15 @@ class Entry | |||
122 | private $updatedAt; | 122 | private $updatedAt; |
123 | 123 | ||
124 | /** | 124 | /** |
125 | * @var \DateTime | ||
126 | * | ||
127 | * @ORM\Column(name="published_at", type="datetime", nullable=true) | ||
128 | * | ||
129 | * @Groups({"entries_for_user", "export_all"}) | ||
130 | */ | ||
131 | private $publishedAt; | ||
132 | |||
133 | /** | ||
125 | * @ORM\OneToMany(targetEntity="Wallabag\AnnotationBundle\Entity\Annotation", mappedBy="entry", cascade={"persist", "remove"}) | 134 | * @ORM\OneToMany(targetEntity="Wallabag\AnnotationBundle\Entity\Annotation", mappedBy="entry", cascade={"persist", "remove"}) |
126 | * @ORM\JoinTable | 135 | * @ORM\JoinTable |
127 | * | 136 | * |
@@ -701,4 +710,24 @@ class Entry | |||
701 | 710 | ||
702 | return $this; | 711 | return $this; |
703 | } | 712 | } |
713 | |||
714 | /** | ||
715 | * @return \Datetime | ||
716 | */ | ||
717 | public function getPublishedAt() | ||
718 | { | ||
719 | return $this->publishedAt; | ||
720 | } | ||
721 | |||
722 | /** | ||
723 | * @param \Datetime $publishedAt | ||
724 | * | ||
725 | * @return Entry | ||
726 | */ | ||
727 | public function setPublishedAt(\Datetime $publishedAt) | ||
728 | { | ||
729 | $this->publishedAt = $publishedAt; | ||
730 | |||
731 | return $this; | ||
732 | } | ||
704 | } | 733 | } |