From 7d9b65e63b1540695c00725a22ccb0da8ab59c5d Mon Sep 17 00:00:00 2001 From: thinkphp Date: Fri, 2 Sep 2016 12:26:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BQuery=E7=B1=BB=E7=9A=84find?= =?UTF-8?q?=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/db/Query.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/think/db/Query.php b/library/think/db/Query.php index 1d51cc54..10ed25b1 100644 --- a/library/think/db/Query.php +++ b/library/think/db/Query.php @@ -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']);