diff --git a/library/think/model/relation/BelongsTo.php b/library/think/model/relation/BelongsTo.php index 4c8b7926..f693ef6d 100644 --- a/library/think/model/relation/BelongsTo.php +++ b/library/think/model/relation/BelongsTo.php @@ -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; } /**