This commit is contained in:
2021-02-23 18:14:22 +08:00
parent 625c132cb5
commit b1a9dc4155
+2
View File
@@ -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();