TranslationFormBundle icon indicating copy to clipboard operation
TranslationFormBundle copied to clipboard

Field(s) 'tagsText' doesn't exist

Open bepabg opened this issue 5 years ago • 1 comments

I'm using TranslationFormBundle with Symfony 5.0.7, BeelabTagBundle, Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface, Knp\DoctrineBehaviors\Model\Translatable\TranslationTrait My project is here -> https://github.com/bepabg/Blog

If you build it, create database and run localhost/blog/new you will see the error: Field(s) 'tagsText' doesn't exist in App\Entity\BlogTranslation If I set tagsText in Blog entity everything is OK, but I want it to be in BlogTranslation entity. When I call all translations - without one by one in FormType don't render tagsText field in view mode, if I call one by one, as in my project - there is errror, what's happend and why I received that error?

bepabg avatar May 01 '20 21:05 bepabg

Hi @bepabg

If this issue is still valid, we need more info (code, minimal reproducible example if possible). From what I can see in your code $tagsText is not a mapped field, so I don't see how you can have it translated via Knp.

Thanks

tchapi avatar Dec 12 '21 19:12 tchapi