提交 0ce1bcdc 编写于 作者: weixin_47267244's avatar weixin_47267244

手动查询关联时,关联字段自动加入序列化

上级 10f1935d
......@@ -530,7 +530,7 @@ abstract class Model extends BaseModel
}
// 关联字段加入序列化
$this->__fieldNames = array_merge($this->__fieldNames, $names);
$this->__serializedFields = array_merge($this->__serializedFields, $names);
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册