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 6d3a962 commit 4d5eeedCopy full SHA for 4d5eeed
components/uid.rst
@@ -557,6 +557,7 @@ entity primary keys::
557
namespace App\Entity;
558
559
use Doctrine\ORM\Mapping as ORM;
560
+ use Symfony\Bridge\Doctrine\IdGenerator\UlidGenerator;
561
use Symfony\Bridge\Doctrine\Types\UlidType;
562
use Symfony\Component\Uid\Ulid;
563
@@ -565,7 +566,7 @@ entity primary keys::
565
566
#[ORM\Id]
567
#[ORM\Column(type: UlidType::NAME, unique: true)]
568
#[ORM\GeneratedValue(strategy: 'CUSTOM')]
- #[ORM\CustomIdGenerator(class: 'doctrine.ulid_generator')]
569
+ #[ORM\CustomIdGenerator(class: UlidGenerator::class)]
570
private ?Ulid $id;
571
572
public function getId(): ?Ulid
0 commit comments