From 05f93d8e9c10f93003d4157cca7f31050a1f449a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 17 Nov 2020 18:48:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Database/ActiveRecord.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Database/ActiveRecord.php b/Database/ActiveRecord.php index 2f7892b0..2e20ad70 100644 --- a/Database/ActiveRecord.php +++ b/Database/ActiveRecord.php @@ -124,7 +124,7 @@ class ActiveRecord extends BaseActiveRecord } $select = new static(); $select->attributes = $attributes; - if ($select->save()) { + if (!$select->save()) { throw new Exception($select->getLastError()); } return $select;