framework icon indicating copy to clipboard operation
framework copied to clipboard

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

Open mkinit opened this issue 2 years ago • 0 comments

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

mkinit avatar Nov 23 '23 09:11 mkinit