Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions doctrine/multiple_entity_managers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ The following configuration code shows how you can configure two entity managers
mappings:
Main:
is_bundle: false
type: annotation
dir: '%kernel.project_dir%/src/Entity/Main'
prefix: 'App\Entity\Main'
alias: Main
Expand All @@ -52,7 +51,6 @@ The following configuration code shows how you can configure two entity managers
mappings:
Customer:
is_bundle: false
type: annotation
dir: '%kernel.project_dir%/src/Entity/Customer'
prefix: 'App\Entity\Customer'
alias: Customer
Expand Down Expand Up @@ -85,7 +83,6 @@ The following configuration code shows how you can configure two entity managers
<doctrine:mapping
name="Main"
is_bundle="false"
type="annotation"
dir="%kernel.project_dir%/src/Entity/Main"
prefix="App\Entity\Main"
alias="Main"
Expand All @@ -96,7 +93,6 @@ The following configuration code shows how you can configure two entity managers
<doctrine:mapping
name="Customer"
is_bundle="false"
type="annotation"
dir="%kernel.project_dir%/src/Entity/Customer"
prefix="App\Entity\Customer"
alias="Customer"
Expand Down Expand Up @@ -127,15 +123,13 @@ The following configuration code shows how you can configure two entity managers
$defaultEntityManager->connection('default');
$defaultEntityManager->mapping('Main')
->isBundle(false)
->type('annotation')
->dir('%kernel.project_dir%/src/Entity/Main')
->prefix('App\Entity\Main')
->alias('Main');
$customerEntityManager = $doctrine->orm()->entityManager('customer');
$customerEntityManager->connection('customer');
$customerEntityManager->mapping('Customer')
->isBundle(false)
->type('annotation')
->dir('%kernel.project_dir%/src/Entity/Customer')
->prefix('App\Entity\Customer')
->alias('Customer')
Expand Down