File tree Expand file tree Collapse file tree 4 files changed +30
-1
lines changed Expand file tree Collapse file tree 4 files changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -157,9 +157,16 @@ Whoa! You now have a new ``src/Entity/Product.php`` file::
157157 // ... getter and setter methods
158158 }
159159
160+ .. tip ::
161+
162+ Starting in `MakerBundle `_: v1.57.0 - You can pass either ``--with-uuid `` or
163+ ``--with-ulid `` to ``make:entity ``. Leveraging Symfony's :doc: `Uid Component </components/uid >`,
164+ this generates an entity with the ``id `` type as :ref: `Uuid <uuid >`
165+ or :ref: `Ulid <ulid >` instead of ``int ``.
166+
160167.. note ::
161168
162- Starting in v1.44.0 - MakerBundle only supports entities using PHP attributes.
169+ Starting in v1.44.0 - ` MakerBundle `_: only supports entities using PHP attributes.
163170
164171.. note ::
165172
Original file line number Diff line number Diff line change @@ -79,6 +79,13 @@ This will generate your new entity class::
7979 // ... getters and setters
8080 }
8181
82+ .. tip ::
83+
84+ Starting in `MakerBundle `_: v1.57.0 - You can pass either ``--with-uuid `` or
85+ ``--with-ulid `` to ``make:entity ``. Leveraging Symfony's :doc: `Uid Component </components/uid >`,
86+ this generates an entity with the ``id `` type as :ref: `Uuid <uuid >`
87+ or :ref: `Ulid <ulid >` instead of ``int ``.
88+
8289Mapping the ManyToOne Relationship
8390----------------------------------
8491
@@ -700,3 +707,4 @@ Doctrine's `Association Mapping Documentation`_.
700707.. _`orphanRemoval` : https://www.doctrine-project.org/projects/doctrine-orm/en/current/reference/working-with-associations.html#orphan-removal
701708.. _`Mastering Doctrine Relations` : https://symfonycasts.com/screencast/doctrine-relations
702709.. _`ArrayCollection` : https://www.doctrine-project.org/projects/doctrine-collections/en/1.6/index.html
710+ .. _`MakerBundle` : https://symfony.com/doc/current/bundles/SymfonyMakerBundle/index.html
Original file line number Diff line number Diff line change @@ -232,6 +232,13 @@ from the `MakerBundle`_:
232232 }
233233 }
234234
235+ .. tip ::
236+
237+ Starting in `MakerBundle `_: v1.57.0 - You can pass either ``--with-uuid `` or
238+ ``--with-ulid `` to ``make:user ``. Leveraging Symfony's :doc: `Uid Component </components/uid >`,
239+ this generates a ``User `` entity with the ``id `` type as :ref: `Uuid <uuid >`
240+ or :ref: `Ulid <ulid >` instead of ``int ``.
241+
235242.. versionadded :: 5.3
236243
237244 The :class: `Symfony\\ Component\\ Security\\ Core\\ User\\ PasswordAuthenticatedUserInterface `
Original file line number Diff line number Diff line change @@ -294,6 +294,13 @@ you'll see a success message and a list of any other steps you need to do.
294294
295295 $ php bin/console make:reset-password
296296
297+ .. tip ::
298+
299+ Starting in `MakerBundle `_: v1.57.0 - You can pass either ``--with-uuid `` or
300+ ``--with-ulid `` to ``make:reset-password ``. Leveraging Symfony's :doc: `Uid Component </components/uid >`,
301+ the entities will be generated with the ``id `` type as :ref: `Uuid <uuid >`
302+ or :ref: `Ulid <ulid >` instead of ``int ``.
303+
297304You can customize the reset password bundle's behavior by updating the
298305``reset_password.yaml `` file. For more information on the configuration,
299306check out the `SymfonyCastsResetPasswordBundle `_ guide.
You can’t perform that action at this time.
0 commit comments