Skip to content

Allow locale to be retrieved from parent document #1338

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 23, 2015
Merged

Allow locale to be retrieved from parent document #1338

merged 2 commits into from
Jun 23, 2015

Conversation

alcaeus
Copy link
Contributor

@alcaeus alcaeus commented Jun 22, 2015

Fixes #1304.

Note: This requires doctrine/mongodb-odm#1152 to be merged first.

This applies when using ODM because doctrine/mongodb-odm#782 WILL break translations in embedded documents. With this change it is possible to have the @Locale annotation in a root document and have that apply to ALL embedded documents within.

Andreas Braun added 2 commits June 18, 2015 11:28
This allows the TranslatableListener to fetch the locale from a parent object in case the translated object is a MongoDB embedded document.
@malarzm
Copy link
Contributor

malarzm commented Jun 23, 2015

Just a head up that I've merged doctrine/mongodb-odm#1152 and have plan to merge doctrine/mongodb-odm#782 soon (by soon I mean probably tomorrow)

@l3pp4rd
Copy link
Contributor

l3pp4rd commented Jun 23, 2015

great, thanks @alcaeus @malarzm

l3pp4rd added a commit that referenced this pull request Jun 23, 2015
Allow locale to be retrieved from parent document
@l3pp4rd l3pp4rd merged commit 68aa09e into doctrine-extensions:master Jun 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants