修正错误

This commit is contained in:
thinkphp
2016-04-11 11:11:00 +08:00
parent 7cfa023b54
commit ce6d3195e6

View File

@@ -295,7 +295,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
// 避免影响其它操作方法
$this->relation = [];
// 保存关联对象值
$this->data[$name] = $result;
$this->data[$relation] = $result;
return $result;
}