Question

I was wondering if someone managed to add I18n forms in the SonataAdminBundle to be able to Edit both english fields and other languages fields like we used to do in Symfony 1.4.

Our fields are I18n'ed with the Gedmo Doctrine Extensions

PS: We are using Symfony 2.1-DEV.

Thanks.

Was it helpful?

Solution

personal translations can be used in symfony2 forms I guess including sonata. Using recent stof extensions bundle from master branch. You will need to configure mapping manually, follow the docs on stof bundle.

By default translatable uses a common table for all translations. Which does not have a direct foreign key constraint. You need to specify the @Gedmo\TranslationEntity(class="your\personal\translation\entity\class") class annotation in order to use personal translations.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top