From 6e75d3c6c7c424fec60ad93a9d4b574afb0f4531 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 28 Aug 2017 11:30:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9Bmodel=E7=B1=BB=E7=9A=84save?= =?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/Model.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/think/Model.php b/library/think/Model.php index d0201a00..f1d28155 100644 --- a/library/think/Model.php +++ b/library/think/Model.php @@ -943,7 +943,8 @@ abstract class Model implements \JsonSerializable, \ArrayAccess $this->setAttr($key, $value, $data); } if (!empty($where)) { - $this->isUpdate = true; + $this->isUpdate = true; + $this->updateWhere = $where; } }