Skip to content

Commit 7eb3fbf

Browse files
committed
Merge branch '6.4' into 7.2
* 6.4: Update uid.rst
2 parents dd1fb3c + 8fa2180 commit 7eb3fbf

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
@@ -369,6 +369,7 @@ entity primary keys::
369369
namespace App\Entity;
370370

371371
use Doctrine\ORM\Mapping as ORM;
372+
use Symfony\Bridge\Doctrine\IdGenerator\UuidGenerator;
372373
use Symfony\Bridge\Doctrine\Types\UuidType;
373374
use Symfony\Component\Uid\Uuid;
374375

@@ -377,7 +378,7 @@ entity primary keys::
377378
#[ORM\Id]
378379
#[ORM\Column(type: UuidType::NAME, unique: true)]
379380
#[ORM\GeneratedValue(strategy: 'CUSTOM')]
380-
#[ORM\CustomIdGenerator(class: 'doctrine.uuid_generator')]
381+
#[ORM\CustomIdGenerator(class: UuidGenerator::class)]
381382
private ?Uuid $id;
382383

383384
public function getId(): ?Uuid

0 commit comments

Comments
 (0)