mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
调整BelongsTo的hasWhere方法
This commit is contained in:
@@ -101,7 +101,6 @@ class BelongsTo extends OneToOne
|
|||||||
|
|
||||||
return $this->parent->db()->alias($model)
|
return $this->parent->db()->alias($model)
|
||||||
->field($fields)
|
->field($fields)
|
||||||
->group($model . '.' . $this->foreignKey)
|
|
||||||
->join([$table => $relation], $model . '.' . $this->foreignKey . '=' . $relation . '.' . $this->localKey, $this->joinType)
|
->join([$table => $relation], $model . '.' . $this->foreignKey . '=' . $relation . '.' . $this->localKey, $this->joinType)
|
||||||
->where($where);
|
->where($where);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user