Skip to content
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

Filter by locales #188

Open
damonsson opened this issue Feb 4, 2016 · 1 comment
Open

Filter by locales #188

damonsson opened this issue Feb 4, 2016 · 1 comment

Comments

@damonsson
Copy link

Is it possible filter static content by locales? TranslatableExtension.php doesn't have method configureDatagridFilters. If i wish filter content by language, what i must do?

I tried with add method configureDatagridFilters with content $datagridMapper->add('locales', 'doctrine_phpcr_string'); but I had error Could not find a mapped field or association named "locales" for alias "a"

@dbu
Copy link
Member

dbu commented Feb 8, 2016

the locales are implicit. depending on your set up, it means either a child node for the corresponding locale or translated properties exist in your locale.

there is https://github.com/sonata-project/SonataTranslationBundle/ which should make the translation things in this bundle obsolete. maybe @nicolas-bastien where this could belong (if its not already provided)?

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

No branches or pull requests

2 participants