如何扩展Shopware 5中没有_attributes表的模型?

发布于 2025-01-22 01:01:52 字数 202 浏览 3 评论 0原文

我想通过某些字段扩展高级项目模块,例如( 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

网白 2025-01-29 01:01:52

在这种情况下,您需要在高级项目表中使用外键编写自己的实体,并且需要自行加载数据。在这里,您可以找到有关它的一些信息 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/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文