Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3291021

Browse files
committed
Merge branch '6.4' into 7.2
* 6.4: Update uid.rst
2 parents7d13bac +f99ea9a commit3291021

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)

[8]ページ先頭

©2009-2025 Movatter.jp