$spbrResult = $this->spbr->where($data)->with(['verifier' => function($vQuery) {
$vQuery->where(['shop_id'=>$this->shopId]);
},'share_pool'=> function($spQuery) use ($sharePoolId){
$spQuery->where(['id'=>$sharePoolId]);
},'share_pool_circle'=>function($spcQuery) use ($sharePoolCircleId){
$spcQuery->where(['id'=>$sharePoolCircleId]);
}
])->find();
php with关联多模型
最新推荐文章于 2024-06-20 09:56:04 发布