全场我最姜姜姜丶 的个人博客 / 0 / 1 / 创建于 5年前 / 更新于 5年前
本身表关联a ,a关联b
self::find()->with([ 'a'=> function ($query){ $query->with('b'); } ])
本作品采用《CC 协议》,转载必须注明作者和本文链接
不用这么麻烦
self::find()->with(['a.b']);
我要举报该,理由是:
不用这么麻烦