This commit is contained in:
thinkphp
2017-03-28 19:18:06 +08:00

View File

@@ -34,7 +34,7 @@ class BelongsTo extends OneToOne
$this->localKey = $localKey;
$this->joinType = $joinType;
$this->query = (new $model)->db();
$this->relation = $realtion;
$this->relation = $relation;
}
/**