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

Appearance settings

Commit 8fa2180

Browse filesBrowse files
committed
minor #21007 [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 <!-- 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 ------- a94507c Update uid.rst
2 parents 9323d47 + a94507c commit 8fa2180
Copy full SHA for 8fa2180

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎components/uid.rst

Copy file name to clipboardExpand all lines: components/uid.rst
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@ entity primary keys::
331331
namespace App\Entity;
332332

333333
use Doctrine\ORM\Mapping as ORM;
334+
use Symfony\Bridge\Doctrine\IdGenerator\UuidGenerator;
334335
use Symfony\Bridge\Doctrine\Types\UuidType;
335336
use Symfony\Component\Uid\Uuid;
336337

@@ -339,7 +340,7 @@ entity primary keys::
339340
#[ORM\Id]
340341
#[ORM\Column(type: UuidType::NAME, unique: true)]
341342
#[ORM\GeneratedValue(strategy: 'CUSTOM')]
342-
#[ORM\CustomIdGenerator(class: 'doctrine.uuid_generator')]
343+
#[ORM\CustomIdGenerator(class: UuidGenerator::class)]
343344
private ?Uuid $id;
344345

345346
public function getId(): ?Uuid

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.