Skip to content

Commit 7653443

Browse files
committed
minor #17409 [Doctrine] Update multiple_entity_managers.rst (ccattaneo)
This PR was submitted for the 6.1 branch but it was merged into the 6.2 branch instead. Discussion ---------- [Doctrine] 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 <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `6.x` for features of unreleased versions). --> Commits ------- db393f5 Update multiple_entity_managers.rst
2 parents 4b2c16a + db393f5 commit 7653443

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
@@ -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

Comments
 (0)