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 @@ -157,9 +157,16 @@ Whoa! You now have a new ``src/Entity/Product.php`` file::
157
157
// ... getter and setter methods
158
158
}
159
159
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
+
160
167
.. note ::
161
168
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.
163
170
164
171
.. note ::
165
172
@@ -225,6 +232,11 @@ already installed:
225
232
226
233
$ php bin/console make:migration
227
234
235
+ .. tip ::
236
+
237
+ Starting in `MakerBundle `_: v1.56.0 - Passing ``--formatted `` to ``make:migration ``
238
+ generates a nice and tidy migration file.
239
+
228
240
If everything worked, you should see something like this:
229
241
230
242
.. code-block :: text
@@ -1085,3 +1097,4 @@ Learn more
1085
1097
.. _`PDO` : https://www.php.net/pdo
1086
1098
.. _`available Doctrine extensions` : https://github.com/doctrine-extensions/DoctrineExtensions
1087
1099
.. _`StofDoctrineExtensionsBundle` : https://github.com/stof/StofDoctrineExtensionsBundle
1100
+ .. _`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