-
-
Notifications
You must be signed in to change notification settings - Fork 454
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid duplication of AttachEntityListeners (#560)
* Avoid duplication of AttachEntityListeners * Test AttachEntityListeners are filtered by connections
- Loading branch information
1 parent
4418423
commit a01d99b
Showing
4 changed files
with
87 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...s/DependencyInjection/Fixtures/config/xml/orm_attach_entity_listeners_two_connections.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" ?> | ||
|
||
<container xmlns="http://symfony.com/schema/dic/services" | ||
xmlns:doctrine="http://symfony.com/schema/dic/doctrine" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd | ||
http://symfony.com/schema/dic/doctrine http://symfony.com/schema/dic/doctrine/doctrine-1.0.xsd"> | ||
|
||
<doctrine:config> | ||
<doctrine:dbal default-connection="default"> | ||
<doctrine:connection name="default" dbname="db" /> | ||
<doctrine:connection name="foobar" dbname="foobar" /> | ||
</doctrine:dbal> | ||
|
||
<doctrine:orm default-entity-manager="em1"> | ||
<doctrine:entity-manager name="em1" connection="default" /> | ||
<doctrine:entity-manager name="em2" connection="foobar" /> | ||
</doctrine:orm> | ||
</doctrine:config> | ||
</container> |
16 changes: 16 additions & 0 deletions
16
...s/DependencyInjection/Fixtures/config/yml/orm_attach_entity_listeners_two_connections.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
doctrine: | ||
dbal: | ||
default_connection: default | ||
connections: | ||
default: | ||
dbname: db | ||
foobar: | ||
dbname: foobar | ||
|
||
orm: | ||
default_entity_manager: em1 | ||
entity_managers: | ||
em1: | ||
connection: default | ||
em2: | ||
connection: foobar |