We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1851eae commit 881051cCopy full SHA for 881051c
components/uid.rst
@@ -527,6 +527,7 @@ entity primary keys::
527
namespace App\Entity;
528
529
use Doctrine\ORM\Mapping as ORM;
530
+ use Symfony\Bridge\Doctrine\IdGenerator\UlidGenerator;
531
use Symfony\Bridge\Doctrine\Types\UlidType;
532
use Symfony\Component\Uid\Ulid;
533
@@ -535,7 +536,7 @@ entity primary keys::
535
536
#[ORM\Id]
537
#[ORM\Column(type: UlidType::NAME, unique: true)]
538
#[ORM\GeneratedValue(strategy: 'CUSTOM')]
- #[ORM\CustomIdGenerator(class: 'doctrine.ulid_generator')]
539
+ #[ORM\CustomIdGenerator(class: UlidGenerator::class)]
540
private ?Ulid $id;
541
542
public function getId(): ?Ulid
0 commit comments