Skip to content

Commit 1dc3ef5

Browse files
committed
completion of the example of multiple entinty with mappings
1 parent eedcfdb commit 1dc3ef5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

book/doctrine/orm/configuration.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,11 @@ The following configuration code shows how to define two EntityManagers:
167167
entity_managers:
168168
default:
169169
connection: default
170+
mappings: MyBundle1: ~
171+
mappings: MyBundle2: ~
170172
customer:
171173
connection: customer
174+
mappings: MyBundle3: ~
172175

173176
Just like the DBAL, if you have configured multiple ``EntityManager``
174177
instances and want to get a specific one you can use the full service name to

0 commit comments

Comments
 (0)