think-orm
think-orm copied to clipboard
一对多关联字段查询BUG
https://github.com/top-think/think-orm/blob/7b0b8ea6ca5e020217f6ba7ae34d547e148a675b/src/model/relation/HasManyThrough.php#L270
如果表有前缀就会报错,直接获取表明也不是个问题啊;再或者表明和模型名不一样也是有问题
if ($this->baseQuery) {
$throughKey = $this->query->getTable() . '.' . $this->throughKey;
}