Skip to content

Commit f8365aa

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: [MakerBundle] `make:migration` supports --formatted option [MakerBundle] document --with-uuid & --with-ulid
2 parents 623fd70 + f78e942 commit f8365aa

File tree

4 files changed

+41
-1
lines changed

4 files changed

+41
-1
lines changed

doctrine.rst

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff 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+
228240
If everything worked, you should see something like this:
229241

230242
.. code-block:: text
@@ -1085,3 +1097,4 @@ Learn more
10851097
.. _`PDO`: https://www.php.net/pdo
10861098
.. _`available Doctrine extensions`: https://github.com/doctrine-extensions/DoctrineExtensions
10871099
.. _`StofDoctrineExtensionsBundle`: https://github.com/stof/StofDoctrineExtensionsBundle
1100+
.. _`MakerBundle`: https://symfony.com/doc/current/bundles/SymfonyMakerBundle/index.html

doctrine/associations.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
8289
Mapping 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

security.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
206213
If your user is a Doctrine entity, like in the example above, don't forget
207214
to 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

security/passwords.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
285292
You can customize the reset password bundle's behavior by updating the
286293
``reset_password.yaml`` file. For more information on the configuration,
287294
check out the `SymfonyCastsResetPasswordBundle`_ guide.

0 commit comments

Comments
 (0)