@@ -257,6 +257,7 @@ entity primary keys::
257
257
namespace App\Entity;
258
258
259
259
use Doctrine\ORM\Mapping as ORM;
260
+ use Symfony\Bridge\Doctrine\IdGenerator\UuidGenerator;
260
261
use Symfony\Bridge\Doctrine\Types\UuidType;
261
262
use Symfony\Component\Uid\Uuid;
262
263
@@ -265,7 +266,7 @@ entity primary keys::
265
266
#[ORM\Id]
266
267
#[ORM\Column(type: UuidType::NAME, unique: true)]
267
268
#[ORM\GeneratedValue(strategy: 'CUSTOM')]
268
- #[ORM\CustomIdGenerator(class: 'doctrine.uuid_generator' )]
269
+ #[ORM\CustomIdGenerator(class: UuidGenerator::class )]
269
270
private ?Uuid $id;
270
271
271
272
public function getId(): ?Uuid
@@ -444,6 +445,7 @@ entity primary keys::
444
445
namespace App\Entity;
445
446
446
447
use Doctrine\ORM\Mapping as ORM;
448
+ use Symfony\Bridge\Doctrine\IdGenerator\UlidGenerator;
447
449
use Symfony\Bridge\Doctrine\Types\UlidType;
448
450
use Symfony\Component\Uid\Ulid;
449
451
@@ -452,7 +454,7 @@ entity primary keys::
452
454
#[ORM\Id]
453
455
#[ORM\Column(type: UlidType::NAME, unique: true)]
454
456
#[ORM\GeneratedValue(strategy: 'CUSTOM')]
455
- #[ORM\CustomIdGenerator(class: 'doctrine.ulid_generator' )]
457
+ #[ORM\CustomIdGenerator(class: UlidGenerator::class )]
456
458
private ?Ulid $id;
457
459
458
460
public function getId(): ?Ulid
0 commit comments