Filter by locales
damonsson opened this issue · 1 comments
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"
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)?