From c9a6d18826f6dec92809ccbf699bc69011b50a4b Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 20 Mar 2024 18:00:50 +0100 Subject: [PATCH] fix task notes in task post --- src/Entity/Task.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Entity/Task.php b/src/Entity/Task.php index 0b28016..16f19e8 100644 --- a/src/Entity/Task.php +++ b/src/Entity/Task.php @@ -4,6 +4,7 @@ namespace App\Entity; use App\Enum\PrioType; use App\Repository\TaskRepository; +use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\DBAL\Types\Types; use Doctrine\ORM\Mapping as ORM; @@ -58,6 +59,7 @@ class Task $this->createdBy = $createdBy; $this->assignedTo = $assignedTo; $this->createdAt = new \DateTimeImmutable(); + $this->taskNotes = new ArrayCollection(); } public function getId(): ?int