jie8699383

Results 1 issues of jie8699383

如果$foreignKey和$throughKey都是id的时候,会报错无法使用where查询,在src/model/relation/HasManyThrough.php下面增加代码判断 $throughKey = $this->throughKey; if ($this->baseQuery) { $throughKey = Str::snake(class_basename($this->model)) . "." . $this->throughKey; } 可以解决问题 ![image](https://user-images.githubusercontent.com/15226615/150094829-b1cfc32d-6405-4412-a350-8d45e22de55d.png)

ORM