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 9323d47 commit a94507cCopy full SHA for a94507c
components/uid.rst
@@ -331,6 +331,7 @@ entity primary keys::
331
namespace App\Entity;
332
333
use Doctrine\ORM\Mapping as ORM;
334
+ use Symfony\Bridge\Doctrine\IdGenerator\UuidGenerator;
335
use Symfony\Bridge\Doctrine\Types\UuidType;
336
use Symfony\Component\Uid\Uuid;
337
@@ -339,7 +340,7 @@ entity primary keys::
339
340
#[ORM\Id]
341
#[ORM\Column(type: UuidType::NAME, unique: true)]
342
#[ORM\GeneratedValue(strategy: 'CUSTOM')]
- #[ORM\CustomIdGenerator(class: 'doctrine.uuid_generator')]
343
+ #[ORM\CustomIdGenerator(class: UuidGenerator::class)]
344
private ?Uuid $id;
345
346
public function getId(): ?Uuid
0 commit comments