File tree Expand file tree Collapse file tree 4 files changed +41
-1
lines changed Expand file tree Collapse file tree 4 files changed +41
-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
@@ -225,6 +232,11 @@ already installed:
225232
226233 $ php bin/console make:migration
227234
235+ .. tip ::
236+
237+ Starting in `MakerBundle `_: v1.56.0 - Passing ``--formatted `` to ``make:migration ``
238+ generates a nice and tidy migration file.
239+
228240If everything worked, you should see something like this:
229241
230242.. code-block :: text
@@ -1094,3 +1106,4 @@ Learn more
10941106.. _`PDO` : https://www.php.net/pdo
10951107.. _`available Doctrine extensions` : https://github.com/doctrine-extensions/DoctrineExtensions
10961108.. _`StofDoctrineExtensionsBundle` : https://github.com/stof/StofDoctrineExtensionsBundle
1109+ .. _`MakerBundle` : https://symfony.com/doc/current/bundles/SymfonyMakerBundle/index.html
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
@@ -626,3 +633,4 @@ Doctrine's `Association Mapping Documentation`_.
626633.. _`orphanRemoval` : https://www.doctrine-project.org/projects/doctrine-orm/en/current/reference/working-with-associations.html#orphan-removal
627634.. _`Mastering Doctrine Relations` : https://symfonycasts.com/screencast/doctrine-relations
628635.. _`ArrayCollection` : https://www.doctrine-project.org/projects/doctrine-collections/en/1.6/index.html
636+ .. _`MakerBundle` : https://symfony.com/doc/current/bundles/SymfonyMakerBundle/index.html
Original file line number Diff line number Diff line change @@ -203,6 +203,13 @@ from the `MakerBundle`_:
203203 }
204204 }
205205
206+ .. tip ::
207+
208+ Starting in `MakerBundle `_: v1.57.0 - You can pass either ``--with-uuid `` or
209+ ``--with-ulid `` to ``make:user ``. Leveraging Symfony's :doc: `Uid Component </components/uid >`,
210+ this generates a ``User `` entity with the ``id `` type as :ref: `Uuid <uuid >`
211+ or :ref: `Ulid <ulid >` instead of ``int ``.
212+
206213If your user is a Doctrine entity, like in the example above, don't forget
207214to create the tables by :ref: `creating and running a migration <doctrine-creating-the-database-tables-schema >`:
208215
@@ -211,6 +218,11 @@ to create the tables by :ref:`creating and running a migration <doctrine-creatin
211218 $ php bin/console make:migration
212219 $ php bin/console doctrine:migrations:migrate
213220
221+ .. tip ::
222+
223+ Starting in `MakerBundle `_: v1.56.0 - Passing ``--formatted `` to ``make:migration ``
224+ generates a nice and tidy migration file.
225+
214226.. _where-do-users-come-from-user-providers :
215227.. _security-user-providers :
216228
Original file line number Diff line number Diff line change @@ -282,6 +282,13 @@ you'll see a success message and a list of any other steps you need to do.
282282
283283 $ php bin/console make:reset-password
284284
285+ .. tip ::
286+
287+ Starting in `MakerBundle `_: v1.57.0 - You can pass either ``--with-uuid `` or
288+ ``--with-ulid `` to ``make:reset-password ``. Leveraging Symfony's :doc: `Uid Component </components/uid >`,
289+ the entities will be generated with the ``id `` type as :ref: `Uuid <uuid >`
290+ or :ref: `Ulid <ulid >` instead of ``int ``.
291+
285292You can customize the reset password bundle's behavior by updating the
286293``reset_password.yaml `` file. For more information on the configuration,
287294check out the `SymfonyCastsResetPasswordBundle `_ guide.
You can’t perform that action at this time.
0 commit comments