notification: create

This commit is contained in:
2021-12-25 22:41:25 +01:00
parent d62893827b
commit 11824adda4
10 changed files with 210 additions and 26 deletions

View File

@@ -53,7 +53,7 @@ class Notification
/**
* @ORM\Column(type="json")
*/
private array $read;
private array $read = [];
/**
* @ORM\Column(type="string", length=255)
@@ -74,6 +74,7 @@ class Notification
public function __construct()
{
$this->addressees = new ArrayCollection();
$this->setDate(new DateTimeImmutable());
}
public function addAddressee(User $addressee): self