Skip to content

Commit 4d5eeed

Browse files
Update uid.rst
with the string almost their is failure cause symfony dont find the class. This prevents it form it.
1 parent 6d3a962 commit 4d5eeed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/uid.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,7 @@ entity primary keys::
557557
namespace App\Entity;
558558

559559
use Doctrine\ORM\Mapping as ORM;
560+
use Symfony\Bridge\Doctrine\IdGenerator\UlidGenerator;
560561
use Symfony\Bridge\Doctrine\Types\UlidType;
561562
use Symfony\Component\Uid\Ulid;
562563

@@ -565,7 +566,7 @@ entity primary keys::
565566
#[ORM\Id]
566567
#[ORM\Column(type: UlidType::NAME, unique: true)]
567568
#[ORM\GeneratedValue(strategy: 'CUSTOM')]
568-
#[ORM\CustomIdGenerator(class: 'doctrine.ulid_generator')]
569+
#[ORM\CustomIdGenerator(class: UlidGenerator::class)]
569570
private ?Ulid $id;
570571

571572
public function getId(): ?Ulid

0 commit comments

Comments
 (0)