From b1a9dc41552d2c18820fc1882bb37781d2685c60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 23 Feb 2021 18:14:22 +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/Base/BaseActiveRecord.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Database/Base/BaseActiveRecord.php b/Database/Base/BaseActiveRecord.php index aa79e04e..104c98c0 100644 --- a/Database/Base/BaseActiveRecord.php +++ b/Database/Base/BaseActiveRecord.php @@ -417,6 +417,8 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess $trance->commit(); $lastId = $this->setPrimary($lastId, $param); + var_dump($lastId); + $this->event->dispatch(self::AFTER_SAVE, [$attributes, $param]); } catch (\Throwable $exception) { $trance->rollback();