From 1fc85442cb14f0793330c84853d787db63565274 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 28 Nov 2017 12:53:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E5=9E=8Bsaveall=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E8=BF=94=E5=9B=9E=E6=95=B0=E6=8D=AE=E9=9B=86?= =?UTF-8?q?=20=E8=AF=BB=E5=8F=96resultSetType=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/Model.php b/library/think/Model.php index d7dc4536..07592671 100644 --- a/library/think/Model.php +++ b/library/think/Model.php @@ -1322,7 +1322,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess } } $db->commit(); - return $result; + return $this->toCollection($result); } catch (\Exception $e) { $db->rollback(); throw $e;