|
|
@@ -8,7 +8,9 @@ use App\Entity\Organization\Organization;
|
|
|
use App\Enum\Message\MessageStatusEnum;
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
use Ramsey\Uuid\UuidInterface;
|
|
|
+use Ramsey\Uuid\Doctrine\UuidGenerator;
|
|
|
use Symfony\Component\Validator\Constraints as Assert;
|
|
|
+use Symfony\Bridge\Doctrine\Types\UuidType;
|
|
|
|
|
|
/**
|
|
|
* Classe ... qui ...
|
|
|
@@ -22,7 +24,12 @@ abstract class AbstractMessage
|
|
|
#[ORM\GeneratedValue]
|
|
|
protected ?int $id = null;
|
|
|
|
|
|
- #[ORM\Column(type: 'string', unique: true)]
|
|
|
+ /**
|
|
|
+ * @var UuidInterface|null
|
|
|
+ */
|
|
|
+ #[ORM\Column(type: "uuid", unique: true)]
|
|
|
+ #[ORM\GeneratedValue(strategy: "CUSTOM")]
|
|
|
+ #[ORM\CustomIdGenerator(class: UuidGenerator::class)]
|
|
|
protected ?UuidInterface $uuid = null;
|
|
|
|
|
|
#[ORM\ManyToOne]
|