a2lix TranslationFormBundle AND Gedmo Doctrine Extension Translatable with just one Translation table

删除回忆录丶 提交于 2019-12-25 02:37:08

问题


I am trying to use the a2lix TranslationFormBundle ( https://github.com/a2lix/TranslationFormBundle ) with a Symfony2 project. I have been looking at docs and specifically at this demo: https://github.com/a2lix/Demo/tree/master/src/A2lix/DemoTranslationBundle

I noticed all examples in both the doc and the demo use specific translation tables (end entity) for each translatable entity, as set in the class annotation with

@Gedmo\TranslationEntity(class="A2lix\DemoTranslationBundle\Entity\ProductGedmoTranslation")

My idea was to stay with just one table, like the ext_translations table that the Gedmo Doctrine Extension Translatable creates and manages.

Is this possible or does the TranslationFormBundle absolutely need separate tables? Does anyone have a working example?

TIA


回答1:


With the current implementation of TranslationFormBundle, you need separate tables. Use an only one ext_translations table is not plan.



来源:https://stackoverflow.com/questions/22408833/a2lix-translationformbundle-and-gedmo-doctrine-extension-translatable-with-just

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!