From 7cfa023b54fa1a0dbee83f410cf4fb1c759d7e2f Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 11 Apr 2016 10:43:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=E5=85=B3=E8=81=94=E5=AF=B9?= =?UTF-8?q?=E8=B1=A1=E8=B5=8B=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Model.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/think/Model.php b/library/think/Model.php index 9fbee3b4..92468325 100644 --- a/library/think/Model.php +++ b/library/think/Model.php @@ -294,6 +294,9 @@ abstract class Model implements \JsonSerializable, \ArrayAccess } // 避免影响其它操作方法 $this->relation = []; + // 保存关联对象值 + $this->data[$name] = $result; + return $result; }