diff --git a/components/uid.rst b/components/uid.rst index b031348f85a..fe15f964f44 100644 --- a/components/uid.rst +++ b/components/uid.rst @@ -527,6 +527,7 @@ entity primary keys:: namespace App\Entity; use Doctrine\ORM\Mapping as ORM; + use Symfony\Bridge\Doctrine\IdGenerator\UlidGenerator; use Symfony\Bridge\Doctrine\Types\UlidType; use Symfony\Component\Uid\Ulid; @@ -535,7 +536,7 @@ entity primary keys:: #[ORM\Id] #[ORM\Column(type: UlidType::NAME, unique: true)] #[ORM\GeneratedValue(strategy: 'CUSTOM')] - #[ORM\CustomIdGenerator(class: 'doctrine.ulid_generator')] + #[ORM\CustomIdGenerator(class: UlidGenerator::class)] private ?Ulid $id; public function getId(): ?Ulid