Skip to content

Commit 881051c

Browse files
curenect-meinerjaviereguiluz
authored andcommitted
Update uid.rst
with the string almost their is failure cause symfony dont find the class. This prevents it form it.
1 parent 1851eae commit 881051c

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
@@ -527,6 +527,7 @@ entity primary keys::
527527
namespace App\Entity;
528528

529529
use Doctrine\ORM\Mapping as ORM;
530+
use Symfony\Bridge\Doctrine\IdGenerator\UlidGenerator;
530531
use Symfony\Bridge\Doctrine\Types\UlidType;
531532
use Symfony\Component\Uid\Ulid;
532533

@@ -535,7 +536,7 @@ entity primary keys::
535536
#[ORM\Id]
536537
#[ORM\Column(type: UlidType::NAME, unique: true)]
537538
#[ORM\GeneratedValue(strategy: 'CUSTOM')]
538-
#[ORM\CustomIdGenerator(class: 'doctrine.ulid_generator')]
539+
#[ORM\CustomIdGenerator(class: UlidGenerator::class)]
539540
private ?Ulid $id;
540541

541542
public function getId(): ?Ulid

0 commit comments

Comments
 (0)