改名
This commit is contained in:
@@ -374,7 +374,7 @@ abstract class BaseActiveRecord extends Component implements IOrm, \ArrayAccess
|
||||
$this->setAttributes($param);
|
||||
$this->afterSave($attributes, $param);
|
||||
$this->refresh();
|
||||
} catch (Exception $exception) {
|
||||
} catch (\Throwable $exception) {
|
||||
$lastId = false;
|
||||
$trance->rollback();
|
||||
}
|
||||
|
||||
@@ -202,7 +202,7 @@ class Command extends Component
|
||||
if (Config::get('debug.enable', false, false)) {
|
||||
$this->debug($this->sql . '。 Run-time: ' . (microtime(true) - $time));
|
||||
}
|
||||
} catch (\Throwable | Exception $exception) {
|
||||
} catch (\Throwable $exception) {
|
||||
$this->addError($this->sql . '. error: ' . $exception->getMessage(), 'mysql');
|
||||
$result = [];
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user