We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd1fb3c commit 8d07d36Copy full SHA for 8d07d36
components/uid.rst
@@ -369,6 +369,7 @@ entity primary keys::
369
namespace App\Entity;
370
371
use Doctrine\ORM\Mapping as ORM;
372
+ use Symfony\Bridge\Doctrine\IdGenerator\UuidGenerator;
373
use Symfony\Bridge\Doctrine\Types\UuidType;
374
use Symfony\Component\Uid\Uuid;
375
@@ -377,7 +378,7 @@ entity primary keys::
377
378
#[ORM\Id]
379
#[ORM\Column(type: UuidType::NAME, unique: true)]
380
#[ORM\GeneratedValue(strategy: 'CUSTOM')]
- #[ORM\CustomIdGenerator(class: 'doctrine.uuid_generator')]
381
+ #[ORM\CustomIdGenerator(class: UuidGenerator::class)]
382
private ?Uuid $id;
383
384
public function getId(): ?Uuid
0 commit comments