Skip to content

Commit a8f1edc

Browse files
authored
Merge pull request #6 from webfactory/add_event_subscriber_service_priority
Reduce priority for Doctrine event subscriber
2 parents 6df74af + a56dfcf commit a8f1edc

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
To get the diff for a specific change, go to https://github.com/webfactory/polyglot-bundle/commit/XXX where XXX is the change hash. To get the diff between two versions, go to https://github.com/webfactory/polyglot-bundle/compare/{oldversion}...{newversion}.
44

5+
## Version 1.1.2
6+
7+
* Changed priority for the Doctrine listener to -100 to defer injection of translation objects.
8+
That should make it possible to mark fields as translatable that have
9+
their value managed by other Doctrine extensions. ([GitHub PR #6](https://github.com/webfactory/polyglot-bundle/pull/6/))
10+
511
## Version 1.1.1
612

713
* Support for Symfony 3

src/Webfactory/Bundle/PolyglotBundle/Resources/config/services.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<argument type="service" id="webfactory.polyglot.default_locale_provider"/>
1818
<argument type="service" id="logger" on-invalid="null"/>
1919

20-
<tag name="doctrine.event_subscriber"/>
20+
<tag name="doctrine.event_subscriber" priority="-100"/>
2121
<tag name="monolog.logger" channel="webfactory_polyglot_bundle"/>
2222
</service>
2323

0 commit comments

Comments
 (0)