Skip to content

Commit 80c80db

Browse files
committed
minor #16498 [Uid] Update uid.rst (PierreJoube)
This PR was merged into the 5.4 branch. Discussion ---------- [Uid] Update uid.rst Reference symfony/symfony#44938 (comment) <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `6.x` for features of unreleased versions). --> Commits ------- 91872e4 Update uid.rst
2 parents df6c256 + 91872e4 commit 80c80db

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

components/uid.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@ entity primary keys::
172172
namespace App\Entity;
173173

174174
use Doctrine\ORM\Mapping as ORM;
175-
use Symfony\Bridge\Doctrine\IdGenerator\UuidGenerator;
176175
use Symfony\Component\Uid\Uuid;
177176

178177
class User implements UserInterface
@@ -181,7 +180,7 @@ entity primary keys::
181180
* @ORM\Id
182181
* @ORM\Column(type="uuid", unique=true)
183182
* @ORM\GeneratedValue(strategy="CUSTOM")
184-
* @ORM\CustomIdGenerator(class=UuidGenerator::class)
183+
* @ORM\CustomIdGenerator(class="doctrine.uuid_generator")
185184
*/
186185
private $id;
187186

@@ -345,7 +344,6 @@ entity primary keys::
345344
namespace App\Entity;
346345

347346
use Doctrine\ORM\Mapping as ORM;
348-
use Symfony\Bridge\Doctrine\IdGenerator\UlidGenerator;
349347
use Symfony\Component\Uid\Ulid;
350348

351349
class Product
@@ -354,7 +352,7 @@ entity primary keys::
354352
* @ORM\Id
355353
* @ORM\Column(type="ulid", unique=true)
356354
* @ORM\GeneratedValue(strategy="CUSTOM")
357-
* @ORM\CustomIdGenerator(class=UlidGenerator::class)
355+
* @ORM\CustomIdGenerator(class="doctrine.ulid_generator")
358356
*/
359357
private $id;
360358

0 commit comments

Comments
 (0)