This commit is contained in:
2021-02-23 18:10:16 +08:00
parent 0389203587
commit 75e79915f7
+1 -1
View File
@@ -415,7 +415,7 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess
throw new Exception('保存失败.' . $sqlBuilder);
}
$trance->commit();
$this->setPrimary($lastId, $param);
$this->setPrimary($lastId = (int)$lastId, $param);
$this->event->dispatch(self::AFTER_SAVE, [$attributes, $param]);
} catch (\Throwable $exception) {