改进Query类的find方法

This commit is contained in:
thinkphp
2016-09-02 12:26:55 +08:00
parent 4bde059d08
commit 7d9b65e63b

View File

@@ -1980,6 +1980,9 @@ class Query
$model = $this->model;
$data = new $model($data);
$data->isUpdate(true, isset($options['where']['AND']) ? $options['where']['AND'] : null);
if ($this->allowField) {
$data->allowField($this->allowField);
}
// 关联查询
if (!empty($options['relation'])) {
$data->relationQuery($options['relation']);