We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
如果$foreignKey和$throughKey都是id的时候,会报错无法使用where查询,在src/model/relation/HasManyThrough.php下面增加代码判断 $throughKey = $this->throughKey; if ($this->baseQuery) { $throughKey = Str::snake(class_basename($this->model)) . "." . $this->throughKey; } 可以解决问题