From 1d03915b824954b75c2f155170a3bf23bf323278 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 28 Mar 2017 14:03:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/model/relation/BelongsTo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/model/relation/BelongsTo.php b/library/think/model/relation/BelongsTo.php index cdfa5da6..5fd44207 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; } /**