改名
This commit is contained in:
@@ -407,7 +407,7 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess
|
||||
$lastId = $this->refresh();
|
||||
} catch (\Throwable $exception) {
|
||||
$trance->rollback();
|
||||
$lastId = $this->addError($exception->getMessage(), 'mysql');
|
||||
$lastId = $this->addError($exception, 'mysql');
|
||||
}
|
||||
return $lastId;
|
||||
}
|
||||
|
||||
@@ -179,7 +179,7 @@ class Pagination extends Component
|
||||
try {
|
||||
call_user_func($callback, $data, $param);
|
||||
} catch (\Throwable $exception) {
|
||||
$this->addError($exception->getMessage());
|
||||
$this->addError($exception);
|
||||
} finally {
|
||||
$event = Snowflake::app()->getEvent();
|
||||
$event->trigger(Event::SYSTEM_RESOURCE_RELEASES);
|
||||
|
||||
Reference in New Issue
Block a user