diff --git a/src/model/relation/BelongsToMany.php b/src/model/relation/BelongsToMany.php index 6b64d95300a98eeb4b265cd500158179afcd60ff..d68ef77de8c48771d9b4db928b525a3cb401eaff 100644 --- a/src/model/relation/BelongsToMany.php +++ b/src/model/relation/BelongsToMany.php @@ -162,7 +162,8 @@ class BelongsToMany extends Relation ->select() ->setParent(clone $this->parent); - $this->hydratePivot($result); + // 这里有个bug,在懒加载关联模型的时候,模型里面的Pivot中间模型是没有数据的 + // $this->hydratePivot($result); return $result; }