This commit is contained in:
2020-12-17 16:40:53 +08:00
parent 305929dff8
commit 68baca033a
+1 -1
View File
@@ -381,7 +381,7 @@ abstract class BaseActiveRecord extends Component implements IOrm, \ArrayAccess
$trance->commit();
$this->setAttributes($param);
$this->afterSave($attributes, $param);
$this->refresh();
$lastId = $this->refresh();
} catch (\Throwable $exception) {
$lastId = false;
$trance->rollback();