@@ -43,7 +43,6 @@ The following configuration code shows how you can configure two entity managers
4343 mappings :
4444 Main :
4545 is_bundle : false
46- type : annotation
4746 dir : ' %kernel.project_dir%/src/Entity/Main'
4847 prefix : ' App\Entity\Main'
4948 alias : Main
@@ -52,7 +51,6 @@ The following configuration code shows how you can configure two entity managers
5251 mappings :
5352 Customer :
5453 is_bundle : false
55- type : annotation
5654 dir : ' %kernel.project_dir%/src/Entity/Customer'
5755 prefix : ' App\Entity\Customer'
5856 alias : Customer
@@ -85,7 +83,6 @@ The following configuration code shows how you can configure two entity managers
8583 <doctrine : mapping
8684 name =" Main"
8785 is_bundle =" false"
88- type =" annotation"
8986 dir =" %kernel.project_dir%/src/Entity/Main"
9087 prefix =" App\Entity\Main"
9188 alias =" Main"
@@ -96,7 +93,6 @@ The following configuration code shows how you can configure two entity managers
9693 <doctrine : mapping
9794 name =" Customer"
9895 is_bundle =" false"
99- type =" annotation"
10096 dir =" %kernel.project_dir%/src/Entity/Customer"
10197 prefix =" App\Entity\Customer"
10298 alias =" Customer"
@@ -127,15 +123,13 @@ The following configuration code shows how you can configure two entity managers
127123 $defaultEntityManager->connection('default');
128124 $defaultEntityManager->mapping('Main')
129125 ->isBundle(false)
130- ->type('annotation')
131126 ->dir('%kernel.project_dir%/src/Entity/Main')
132127 ->prefix('App\Entity\Main')
133128 ->alias('Main');
134129 $customerEntityManager = $doctrine->orm()->entityManager('customer');
135130 $customerEntityManager->connection('customer');
136131 $customerEntityManager->mapping('Customer')
137132 ->isBundle(false)
138- ->type('annotation')
139133 ->dir('%kernel.project_dir%/src/Entity/Customer')
140134 ->prefix('App\Entity\Customer')
141135 ->alias('Customer')
0 commit comments