tp5关联再关联使用hasWhere

浏览:4446 发布日期:2019/05/13 分类:ThinkPHP5专区 关键字: 多对多,查询
package关联了packageGoods表,hasWhere这样查询会报错怎么决绝$orderData = $orderModel
            ->hasWhere('orderPackage.orderPackageGoods',['id'=>10693])
            ->with(['shippingInfo','userInfo'])
            ->where($where)
            ->paginate ($this->size, $simple, ['page' => $this->page]);
最佳答案
评论( 相关
后面还有条评论,点击查看>>