From 48ab620b342e3e35856892a966d85660ea518d72 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 1 Jun 2016 14:16:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BModel=E7=B1=BB=E7=9A=84saveAl?= =?UTF-8?q?l=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 | 1 + 1 file changed, 1 insertion(+) diff --git a/library/think/Model.php b/library/think/Model.php index 759484a2..47ff150c 100644 --- a/library/think/Model.php +++ b/library/think/Model.php @@ -411,6 +411,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess */ public function saveAll($dataSet) { + $result = 0; foreach ($dataSet as $data) { $result = $this->isUpdate(false)->save($data, [], false); }