Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8776726

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

File tree

1 file changed

+9
-2
lines changed
Filter options

1 file changed

+9
-2
lines changed

‎doctrine/multiple_entity_managers.rst

Copy file name to clipboardExpand all lines: doctrine/multiple_entity_managers.rst
+9-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.