Jelajahi Sumber

fix uuid can not be parsed as a number bug

Olivier Massot 2 tahun lalu
induk
melakukan
888426f184
1 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 3 3
      src/Entity/Message/AbstractMessage.php

+ 3 - 3
src/Entity/Message/AbstractMessage.php

@@ -20,6 +20,9 @@ use Symfony\Bridge\Doctrine\Types\UuidType;
 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
      */
     #[ORM\Column(type: "uuid", unique: true)]
@@ -28,9 +31,6 @@ abstract class AbstractMessage
     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
      */
     #[ORM\Id]