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

TP6关联预载入怎么嵌套查询呢? #2956

Open
mkinit opened this issue Nov 23, 2023 · 0 comments
Open

TP6关联预载入怎么嵌套查询呢? #2956

mkinit opened this issue Nov 23, 2023 · 0 comments

Comments

@mkinit
Copy link

mkinit commented Nov 23, 2023

比如说我有两个表,一个是产品(product),一个是规格(spec),两个表都关联了品牌,系列和规格也是上下级的关联关系。
然后我在查产品的时候可以通过 product::width(['spec','brand']) 查出规格和品牌数据,但是规格是通过with查出来的,不知道怎么再把品牌数据with出来。

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

1 participant