a2lix / TranslationFormBundle

Ease translations with some dedicated Symfony form types
https://a2lix.fr/bundles/translation-form
MIT License
330 stars 138 forks source link

Unexpected token "[" at position. #325

Closed drbarzaga closed 2 years ago

drbarzaga commented 5 years ago

I am working on a project where I use this bundle to translate the entities and a bundle of Datatable to show the results in tables, it turns out that when I have an entity that has datatables translations it tells me that to show the related values of 1 an is used like this:

-> add ('translations.name', Column :: class, array (
                 'title' => $ this-> translator-> trans ('role.roles'),
                 'data' => 'translations [,] .name'
));

But if I do this it gives me an error like this:

Could not parse property path "[translations] []". Unexpected token "[" at position 14

Does anyone have an idea why?