如何扩展Shopware 5中没有_attributes表的模型?
我想通过某些字段扩展高级项目模块,例如( max_order_value , visible_above_and_visible_below ),但它没有其 _attributes 。
根据文档,我们不应修改Shopware 5核心表。
请指导什么是正确的方法
I want to extends the Premium Items module with some fields like(max_order_value, visible_above_and_visible_below) but it do not have its _attributes.
According to the documentation we should not modify Shopware 5 core tables.
Please guide what is the correct way
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在这种情况下,您需要在高级项目表中使用外键编写自己的实体,并且需要自行加载数据。在这里,您可以找到有关它的一些信息 https://developers.shopware.com/developware.com/developers-guide/-guide/-guide/-guide/-guide/模型/
In this case you need to write your own entity with a foreign key to the premium items table, and need to load the data on your own. Here you find some information about it https://developers.shopware.com/developers-guide/models/