|
@@ -7,6 +7,7 @@ namespace App\Entity\Message;
|
|
|
use App\Attribute\OrganizationDefaultValue;
|
|
use App\Attribute\OrganizationDefaultValue;
|
|
|
use App\Entity\Organization\Organization;
|
|
use App\Entity\Organization\Organization;
|
|
|
use App\Enum\Message\MessageStatusEnum;
|
|
use App\Enum\Message\MessageStatusEnum;
|
|
|
|
|
+use Doctrine\Common\Collections\ArrayCollection;
|
|
|
use Doctrine\Common\Collections\Collection;
|
|
use Doctrine\Common\Collections\Collection;
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
use Ramsey\Uuid\Doctrine\UuidGenerator;
|
|
use Ramsey\Uuid\Doctrine\UuidGenerator;
|
|
@@ -57,6 +58,11 @@ abstract class AbstractMessage
|
|
|
#[ORM\OneToMany(mappedBy: 'message', targetEntity: ReportMessage::class, cascade: ['persist'], orphanRemoval: true)]
|
|
#[ORM\OneToMany(mappedBy: 'message', targetEntity: ReportMessage::class, cascade: ['persist'], orphanRemoval: true)]
|
|
|
protected Collection $reportMessage;
|
|
protected Collection $reportMessage;
|
|
|
|
|
|
|
|
|
|
+ public function __construct()
|
|
|
|
|
+ {
|
|
|
|
|
+ $this->reportMessage = new ArrayCollection();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
public function getId(): ?int
|
|
public function getId(): ?int
|
|
|
{
|
|
{
|
|
|
return $this->id;
|
|
return $this->id;
|