forked from wallabag/wallabag
Added author of article
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user