Skip to content

Commit 3291021

Browse files
committed
Merge branch '6.4' into 7.2
* 6.4: Update uid.rst
2 parents 7d13bac + f99ea9a commit 3291021

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)