private comment added to activity

This commit is contained in:
2022-04-25 14:43:44 +02:00
parent 83dd8f810c
commit 1f2638626c
9 changed files with 431 additions and 5 deletions

View File

@@ -85,6 +85,12 @@ class Activity implements AccompanyingPeriodLinkedWithSocialIssuesEntityInterfac
*/
private CommentEmbeddable $comment;
/**
* @ORM\Embedded(class="Chill\MainBundle\Entity\Embeddable\CommentEmbeddable", columnPrefix="prcomment_")
* @Groups({"docgen:read"})
*/
private CommentEmbeddable $privateComment;
/**
* @ORM\Column(type="datetime")
* @Groups({"docgen:read"})
@@ -191,6 +197,7 @@ class Activity implements AccompanyingPeriodLinkedWithSocialIssuesEntityInterfac
{
$this->reasons = new ArrayCollection();
$this->comment = new CommentEmbeddable();
$this->privateComment = new CommentEmbeddable();
$this->persons = new ArrayCollection();
$this->thirdParties = new ArrayCollection();
$this->documents = new ArrayCollection();
@@ -300,6 +307,11 @@ class Activity implements AccompanyingPeriodLinkedWithSocialIssuesEntityInterfac
return $this->comment;
}
public function getPrivateComment(): CommentEmbeddable
{
return $this->privateComment;
}
public function getDate(): DateTime
{
return $this->date;
@@ -524,6 +536,13 @@ class Activity implements AccompanyingPeriodLinkedWithSocialIssuesEntityInterfac
return $this;
}
public function setPrivateComment(CommentEmbeddable $privateComment): self
{
$this->privateComment = $privateComment;
return $this;
}
public function setDate(DateTime $date): self
{
$this->date = $date;