Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

为什么不能支持多个外键 #2613

Closed
chengang2 opened this issue May 31, 2021 · 1 comment
Closed

为什么不能支持多个外键 #2613

chengang2 opened this issue May 31, 2021 · 1 comment

Comments

@chengang2
Copy link

版本号:

2.4.3

问题描述:

比如商品,订单关系。那中间表:订单商品表,就应该是有两个外键。good_id, order_id。
这里有两个问题。
1:我只在一张表(订单表) 看到对应的附表。商品表没看到对应的附表。如图1,2,3
2:基于这种多对多的设计,订单商品表里面如何自动展示对应的商品名称,商品价格。我在功能测试中只能对应到具体的商品id。
如图4:

截图&代码:

问题1:
图1:

image

图2:
image

图3:

image

问题2:
图4:

image

友情提示: 未按格式要求发帖,会直接删掉。

@chengang2 chengang2 changed the title 为什么不能支持表单多对多 为什么不能支持多个外键 May 31, 2021
@zhangdaiscott
Copy link
Member

暂时不支持多个外键,后期优化

归集到#1312

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants