This commit is contained in:
thinkphp
2017-03-28 14:03:28 +08:00
parent a4646ba1a9
commit 1d03915b82

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;
}
/**