symfony/propel:有关后端生成的 i18nTable 和模块的问题
在 Jobeet 中,架构有以下部分:
jobeet_category:
_attributes: { isI18N: true, i18nTable: jobeet_category_i18n }
id: ~
jobeet_category_i18n:
id: { type: integer, required: true, primaryKey: true, foreignTable: jobeet_category, foreignReference: id }
culture: { isCulture: true, type: varchar, size: 7, required: true, primaryKey: true }
name: { type: varchar(255), required: true }
slug: { type: varchar(255), required: true }
我已经在后端创建了相应的模块,但是当我尝试创建新的“jobeet_category_i18n”时,我错过了允许选择“jobeet_category”对象的选择。
无论如何,我尝试创建它,但正如我预期的那样,显示了一条有关外键的错误消息。
这个架构可以吗?为什么不显示选择“jobeet_category”对象的选择?
哈维
in Jobeet there is this part below of the schema:
jobeet_category:
_attributes: { isI18N: true, i18nTable: jobeet_category_i18n }
id: ~
jobeet_category_i18n:
id: { type: integer, required: true, primaryKey: true, foreignTable: jobeet_category, foreignReference: id }
culture: { isCulture: true, type: varchar, size: 7, required: true, primaryKey: true }
name: { type: varchar(255), required: true }
slug: { type: varchar(255), required: true }
I have created the corresponding modules in the backend, but when i try to create a new "jobeet_category_i18n" i miss the select that would permit choose a "jobeet_category" object.
Anyway i try to create it, but as i expected an error message that speaks about the foreign key is showed.
Is that schema ok? why is not showed the select to choose a "jobeet_category" object?
Javi
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
http://www.symfony-project.org /forms/1_4/en/08-国际化和本地化#chapter_08_propel_objects_internationalization
http://www.symfony-project.org/forms/1_4/en/08-Internationalisation-and-Localisation#chapter_08_propel_objects_internationalization