Skip to content

Commit 8776726

Browse files
committed
Updated some Docrine config changes for Symfony 5.1
1 parent 64925f5 commit 8776726

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

doctrine/multiple_entity_managers.rst

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,8 @@ for each entity manager.
192192
the connection or entity manager, the default (i.e. ``default``) is used.
193193

194194
If you use a different name than ``default`` for the default entity manager,
195-
you will need to redefine the default entity manager in ``prod`` environment
196-
configuration too:
195+
you will need to redefine the default entity manager in the ``prod`` environment
196+
configuration and in the Doctrine migrations configuration (if you use that):
197197

198198
.. code-block:: yaml
199199
@@ -204,6 +204,13 @@ for each entity manager.
204204
205205
# ...
206206
207+
.. code-block:: yaml
208+
209+
# config/packages/doctrine_migrations.yaml
210+
doctrine_migrations:
211+
# ...
212+
em: 'your default entity manager name'
213+
207214
When working with multiple connections to create your databases:
208215

209216
.. code-block:: terminal

0 commit comments

Comments
 (0)