mirror of
https://github.com/wallabag/wallabag.git
synced 2025-09-15 18:57:05 +00:00
Added author of article
This commit is contained in:
parent
5e9009ce86
commit
7b0b3622ab
20 changed files with 79 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue