File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -186,12 +186,25 @@ and ``customer``. The ``default`` entity manager manages entities in the
186186entities in ``src/Entity/Customer ``. You've also defined two connections, one
187187for each entity manager.
188188
189- .. note ::
189+ .. caution ::
190190
191191 When working with multiple connections and entity managers, you should be
192192 explicit about which configuration you want. If you *do * omit the name of
193193 the connection or entity manager, the default (i.e. ``default ``) is used.
194194
195+ If you use a different name than ``default `` for the default entity manager,
196+ you will need to redefine the default entity manager in ``prod `` environment
197+ configuration too:
198+
199+ .. code-block :: yaml
200+
201+ # config/packages/prod/doctrine.yaml
202+ doctrine :
203+ orm :
204+ default_entity_manager : ' your default entity manager name'
205+
206+ # ...
207+
195208 When working with multiple connections to create your databases:
196209
197210.. code-block :: terminal
You can’t perform that action at this time.
0 commit comments