调整BelongsTo的hasWhere方法

This commit is contained in:
thinkphp
2017-12-26 16:32:07 +08:00
parent 713f54f561
commit 43aad4fe11

View File

@@ -101,7 +101,6 @@ class BelongsTo extends OneToOne
return $this->parent->db()->alias($model)
->field($fields)
->group($model . '.' . $this->foreignKey)
->join([$table => $relation], $model . '.' . $this->foreignKey . '=' . $relation . '.' . $this->localKey, $this->joinType)
->where($where);
}