|
@@ -20,6 +20,9 @@ use Symfony\Bridge\Doctrine\Types\UuidType;
|
|
|
abstract class AbstractMessage
|
|
abstract class AbstractMessage
|
|
|
{
|
|
{
|
|
|
/**
|
|
/**
|
|
|
|
|
+ * IMPORTANT! Cette propriété doit être déclarée avant l'id, pour prévenir un bug doctrine
|
|
|
|
|
+ * @see https://github.com/doctrine/orm/issues/7215
|
|
|
|
|
+ *
|
|
|
* @var UuidInterface|null
|
|
* @var UuidInterface|null
|
|
|
*/
|
|
*/
|
|
|
#[ORM\Column(type: "uuid", unique: true)]
|
|
#[ORM\Column(type: "uuid", unique: true)]
|
|
@@ -28,9 +31,6 @@ abstract class AbstractMessage
|
|
|
protected ?UuidInterface $uuid = null;
|
|
protected ?UuidInterface $uuid = null;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- * IMPORTANT! Cette propriété doit être déclarée après l'uuid, pour prévenir un bug doctrine
|
|
|
|
|
- * @see https://github.com/doctrine/orm/issues/7215
|
|
|
|
|
- *
|
|
|
|
|
* @var int|null
|
|
* @var int|null
|
|
|
*/
|
|
*/
|
|
|
#[ORM\Id]
|
|
#[ORM\Id]
|