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