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

Commitf99ea9a

Browse files
committed
minor#20997 [Uid] Update uid.rst (curenect-meiner)
This PR was submitted for the 7.2 branch but it was merged into the 6.4 branch instead.Discussion----------[Uid] Update uid.rstwith the string their is almost a failure, cause symfony dont find the class. This prevents it form it.<!--If your pull request fixes a BUG, use the oldest maintained branch that containsthe bug (seehttps://symfony.com/releases for the list of maintained branches).If your pull request documents a NEW FEATURE, use the same Symfony branch wherethe feature was introduced (and `7.x` for features of unreleased versions).-->Commits-------881051c Update uid.rst
2 parents1851eae +881051c commitf99ea9a

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
@@ -527,6 +527,7 @@ entity primary keys::
527527
namespace App\Entity;
528528

529529
use Doctrine\ORM\Mapping as ORM;
530+
use Symfony\Bridge\Doctrine\IdGenerator\UlidGenerator;
530531
use Symfony\Bridge\Doctrine\Types\UlidType;
531532
use Symfony\Component\Uid\Ulid;
532533

@@ -535,7 +536,7 @@ entity primary keys::
535536
#[ORM\Id]
536537
#[ORM\Column(type: UlidType::NAME, unique: true)]
537538
#[ORM\GeneratedValue(strategy: 'CUSTOM')]
538-
#[ORM\CustomIdGenerator(class:'doctrine.ulid_generator')]
539+
#[ORM\CustomIdGenerator(class:UlidGenerator::class)]
539540
private ?Ulid $id;
540541

541542
public function getId(): ?Ulid

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp