]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Entity/Entry.php
Added author of article
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Entity / Entry.php
index 54f74a14437438c8e7e6a0bb8a68444f40ffbc3d..8d385eb470b8e9174a1a58adbccfa8b43461a172 100644 (file)
@@ -130,6 +130,15 @@ class Entry
      */
     private $publishedAt;
 
+    /**
+     * @var array
+     *
+     * @ORM\Column(name="published_by", type="json_array", nullable=true)
+     *
+     * @Groups({"entries_for_user", "export_all"})
+     */
+    private $publishedBy;
+
     /**
      * @ORM\OneToMany(targetEntity="Wallabag\AnnotationBundle\Entity\Annotation", mappedBy="entry", cascade={"persist", "remove"})
      * @ORM\JoinTable
@@ -730,4 +739,24 @@ class Entry
 
         return $this;
     }
+
+    /**
+     * @return string
+     */
+    public function getPublishedBy()
+    {
+        return $this->publishedBy;
+    }
+
+    /**
+     * @param string $publishedBy
+     *
+     * @return Entry
+     */
+    public function setPublishedBy($publishedBy)
+    {
+        $this->publishedBy = $publishedBy;
+
+        return $this;
+    }
 }