From 1b57af0d3f9d47d456ab73d8c4b4087c2f7f1f45 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 21 Apr 2016 11:21:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3Relation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/model/Relation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/model/Relation.php b/library/think/model/Relation.php index 3cc2cf86..922abc34 100644 --- a/library/think/model/Relation.php +++ b/library/think/model/Relation.php @@ -137,7 +137,7 @@ class Relation case self::BELONGS_TO: foreach ($resultSet as $result) { // 模型关联组装 - $this->match($model, $relation, $result); + $this->match($this->model, $relation, $result); } break; case self::HAS_MANY: