mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
修正多对多的多次查询BUG
This commit is contained in:
@@ -383,7 +383,7 @@ class BelongsToMany extends Relation
|
||||
{
|
||||
// 关联查询封装
|
||||
$tableName = $this->query->getTable();
|
||||
$table = $this->pivot->getTable();
|
||||
$table = $this->pivot->getTable($this->middle);
|
||||
$fields = $this->getQueryFields($tableName);
|
||||
|
||||
$query = $this->query->field($fields)
|
||||
|
||||
Reference in New Issue
Block a user