Skip to content

Commit c1497bc

Browse files
committed
fixes previous pull request : completion of the example of multiple entinty with mappings
1 parent 1dc3ef5 commit c1497bc

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

book/doctrine/orm/configuration.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,13 @@ The following configuration code shows how to define two EntityManagers:
167167
entity_managers:
168168
default:
169169
connection: default
170-
mappings: MyBundle1: ~
171-
mappings: MyBundle2: ~
170+
mappings:
171+
MyBundle1: ~
172+
MyBundle2: ~
172173
customer:
173174
connection: customer
174-
mappings: MyBundle3: ~
175+
mappings:
176+
MyBundle3: ~
175177
176178
Just like the DBAL, if you have configured multiple ``EntityManager``
177179
instances and want to get a specific one you can use the full service name to

0 commit comments

Comments
 (0)