aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Entity
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2017-04-06 09:36:20 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2017-04-09 15:24:51 +0200
commit7b0b3622ab2dd909028481b294c91f88a5682671 (patch)
treecf9a9b432a8f123b8cf7400e387ba3113e8c8cc4 /src/Wallabag/CoreBundle/Entity
parent5e9009ce86a366001616fad5b28cb59dc20ee4df (diff)
downloadwallabag-7b0b3622ab2dd909028481b294c91f88a5682671.tar.gz
wallabag-7b0b3622ab2dd909028481b294c91f88a5682671.tar.zst
wallabag-7b0b3622ab2dd909028481b294c91f88a5682671.zip
Added author of article
Diffstat (limited to 'src/Wallabag/CoreBundle/Entity')
-rw-r--r--src/Wallabag/CoreBundle/Entity/Entry.php29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Entity/Entry.php b/src/Wallabag/CoreBundle/Entity/Entry.php
index 54f74a14..8d385eb4 100644
--- a/src/Wallabag/CoreBundle/Entity/Entry.php
+++ b/src/Wallabag/CoreBundle/Entity/Entry.php
@@ -131,6 +131,15 @@ class Entry
131 private $publishedAt; 131 private $publishedAt;
132 132
133 /** 133 /**
134 * @var array
135 *
136 * @ORM\Column(name="published_by", type="json_array", nullable=true)
137 *
138 * @Groups({"entries_for_user", "export_all"})
139 */
140 private $publishedBy;
141
142 /**
134 * @ORM\OneToMany(targetEntity="Wallabag\AnnotationBundle\Entity\Annotation", mappedBy="entry", cascade={"persist", "remove"}) 143 * @ORM\OneToMany(targetEntity="Wallabag\AnnotationBundle\Entity\Annotation", mappedBy="entry", cascade={"persist", "remove"})
135 * @ORM\JoinTable 144 * @ORM\JoinTable
136 * 145 *
@@ -730,4 +739,24 @@ class Entry
730 739
731 return $this; 740 return $this;
732 } 741 }
742
743 /**
744 * @return string
745 */
746 public function getPublishedBy()
747 {
748 return $this->publishedBy;
749 }
750
751 /**
752 * @param string $publishedBy
753 *
754 * @return Entry
755 */
756 public function setPublishedBy($publishedBy)
757 {
758 $this->publishedBy = $publishedBy;
759
760 return $this;
761 }
733} 762}