Skip to content

Commit f99ea9a

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.rst with 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 contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `7.x` for features of unreleased versions). --> Commits ------- 881051c Update uid.rst
2 parents 1851eae + 881051c commit f99ea9a

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)