Skip to content

Commit a94507c

Browse files
curenect-meinerjaviereguiluz
authored andcommitted
Update uid.rst
1 parent 9323d47 commit a94507c

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
@@ -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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy