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
186
186
entities in ``src/Entity/Customer ``. You've also defined two connections, one
187
187
for each entity manager.
188
188
189
- .. note ::
189
+ .. caution ::
190
190
191
191
When working with multiple connections and entity managers, you should be
192
192
explicit about which configuration you want. If you *do * omit the name of
193
193
the connection or entity manager, the default (i.e. ``default ``) is used.
194
194
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
+
195
208
When working with multiple connections to create your databases:
196
209
197
210
3936
.. code-block :: terminal
You can’t perform that action at this time.
0 commit comments