Fix remarks MR - notif

This commit is contained in:
Marc Ducobu 2021-06-10 15:11:03 +02:00
parent 3ec212df93
commit 916209e402

View File

@ -27,6 +27,7 @@ use Doctrine\ORM\Mapping as ORM;
/** /**
* @ORM\Entity(repositoryClass=NotificationRepository::class) * @ORM\Entity(repositoryClass=NotificationRepository::class)
* @ORM\Table(name="chill_main_notification")
*/ */
class Notification class Notification
{ {
@ -70,7 +71,7 @@ class Notification
private $relatedEntityId; private $relatedEntityId;
/** /**
* @ORM\Column(type="boolean") * @ORM\Column(type="json")
*/ */
private $read; private $read;
@ -168,12 +169,12 @@ class Notification
return $this; return $this;
} }
public function getRead(): ?bool public function getRead(): array
{ {
return $this->read; return $this->read;
} }
public function setRead(bool $read): self public function setRead(array $read): self
{ {
$this->read = $read; $this->read = $read;