File tree 4 files changed +41
-1
lines changed
4 files changed +41
-1
lines changed Original file line number Diff line number Diff line change @@ -158,9 +158,16 @@ Whoa! You now have a new ``src/Entity/Product.php`` file::
158
158
// ... getter and setter methods
159
159
}
160
160
161
+ .. tip ::
162
+
163
+ Starting in `MakerBundle `_: v1.57.0 - You can pass either ``--with-uuid `` or
164
+ ``--with-ulid `` to ``make:entity ``. Leveraging Symfony's :doc: `Uid Component </components/uid >`,
165
+ this generates an entity with the ``id `` type as :ref: `Uuid <uuid >`
166
+ or :ref: `Ulid <ulid >` instead of ``int ``.
167
+
161
168
.. note ::
162
169
163
- Starting in v1.44.0 - MakerBundle only supports entities using PHP attributes.
170
+ Starting in v1.44.0 - ` MakerBundle `_: only supports entities using PHP attributes.
164
171
165
172
.. note ::
166
173
@@ -226,6 +233,11 @@ already installed:
226
233
227
234
$ php bin/console make:migration
228
235
236
+ .. tip ::
237
+
238
+ Starting in `MakerBundle `_: v1.56.0 - Passing ``--formatted `` to ``make:migration ``
239
+ generates a nice and tidy migration file.
240
+
229
241
If everything worked, you should see something like this:
230
242
231
243
.. code-block :: text
@@ -1101,3 +1113,4 @@ Learn more
1101
1113
.. _`PDO` : https://www.php.net/pdo
1102
1114
.. _`available Doctrine extensions` : https://github.com/doctrine-extensions/DoctrineExtensions
1103
1115
.. _`StofDoctrineExtensionsBundle` : https://github.com/stof/StofDoctrineExtensionsBundle
1116
+ .. _`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::
79
79
// ... getters and setters
80
80
}
81
81
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
+
82
89
Mapping the ManyToOne Relationship
83
90
----------------------------------
84
91
@@ -626,3 +633,4 @@ Doctrine's `Association Mapping Documentation`_.
626
633
.. _`orphanRemoval` : https://www.doctrine-project.org/projects/doctrine-orm/en/current/reference/working-with-associations.html#orphan-removal
627
634
.. _`Mastering Doctrine Relations` : https://symfonycasts.com/screencast/doctrine-relations
628
635
.. _`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`_:
203
203
}
204
204
}
205
205
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
+
206
213
If your user is a Doctrine entity, like in the example above, don't forget
207
214
to create the tables by :ref: `creating and running a migration <doctrine-creating-the-database-tables-schema >`:
208
215
@@ -211,6 +218,11 @@ to create the tables by :ref:`creating and running a migration <doctrine-creatin
211
218
$ php bin/console make:migration
212
219
$ php bin/console doctrine:migrations:migrate
213
220
221
+ .. tip ::
222
+
223
+ Starting in `MakerBundle `_: v1.56.0 - Passing ``--formatted `` to ``make:migration ``
224
+ generates a nice and tidy migration file.
225
+
214
226
.. _where-do-users-come-from-user-providers :
215
227
.. _security-user-providers :
216
228
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.
282
282
283
283
$ php bin/console make:reset-password
284
284
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
+
285
292
You can customize the reset password bundle's behavior by updating the
286
293
``reset_password.yaml `` file. For more information on the configuration,
287
294
check out the `SymfonyCastsResetPasswordBundle `_ guide.
You can’t perform that action at this time.
0 commit comments