diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2017-04-05 22:22:16 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2017-04-05 22:22:52 +0200 |
commit | 5e9009ce86a366001616fad5b28cb59dc20ee4df (patch) | |
tree | fc4c88f3405d6f56a1fc27f9af43ab6be4117758 /src/Wallabag/CoreBundle/Entity | |
parent | 19122cf66037f86375072ffa60b6a43b54f02f99 (diff) | |
download | wallabag-5e9009ce86a366001616fad5b28cb59dc20ee4df.tar.gz wallabag-5e9009ce86a366001616fad5b28cb59dc20ee4df.tar.zst wallabag-5e9009ce86a366001616fad5b28cb59dc20ee4df.zip |
Added publication date
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 | } |