Skip to content

Commit a050848

Browse files
authored
Update multiple_entity_managers.rst
in this symfony version the "annotation" type for mappings should be treated as deprecated, or at least reported with a comment
1 parent c5262ec commit a050848

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

doctrine/multiple_entity_managers.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ The following configuration code shows how you can configure two entity managers
5454
mappings:
5555
Main:
5656
is_bundle: false
57-
type: annotation
5857
dir: '%kernel.project_dir%/src/Entity/Main'
5958
prefix: 'App\Entity\Main'
6059
alias: Main
@@ -63,7 +62,6 @@ The following configuration code shows how you can configure two entity managers
6362
mappings:
6463
Customer:
6564
is_bundle: false
66-
type: annotation
6765
dir: '%kernel.project_dir%/src/Entity/Customer'
6866
prefix: 'App\Entity\Customer'
6967
alias: Customer
@@ -104,7 +102,6 @@ The following configuration code shows how you can configure two entity managers
104102
<doctrine:mapping
105103
name="Main"
106104
is_bundle="false"
107-
type="annotation"
108105
dir="%kernel.project_dir%/src/Entity/Main"
109106
prefix="App\Entity\Main"
110107
alias="Main"
@@ -115,7 +112,6 @@ The following configuration code shows how you can configure two entity managers
115112
<doctrine:mapping
116113
name="Customer"
117114
is_bundle="false"
118-
type="annotation"
119115
dir="%kernel.project_dir%/src/Entity/Customer"
120116
prefix="App\Entity\Customer"
121117
alias="Customer"
@@ -154,7 +150,6 @@ The following configuration code shows how you can configure two entity managers
154150
$emDefault->connection('default');
155151
$emDefault->mapping('Main')
156152
->isBundle(false)
157-
->type('annotation')
158153
->dir('%kernel.project_dir%/src/Entity/Main')
159154
->prefix('App\Entity\Main')
160155
->alias('Main');
@@ -163,7 +158,6 @@ The following configuration code shows how you can configure two entity managers
163158
$emCustomer->connection('customer');
164159
$emCustomer->mapping('Customer')
165160
->isBundle(false)
166-
->type('annotation')
167161
->dir('%kernel.project_dir%/src/Entity/Customer')
168162
->prefix('App\Entity\Customer')
169163
->alias('Customer')

0 commit comments

Comments
 (0)