改名
This commit is contained in:
@@ -454,6 +454,8 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess
|
|||||||
$trance->commit();
|
$trance->commit();
|
||||||
$lastId = $this->setPrimary($lastId, $param);
|
$lastId = $this->setPrimary($lastId, $param);
|
||||||
|
|
||||||
|
$this->refresh();
|
||||||
|
|
||||||
$this->event->dispatch(self::AFTER_SAVE, [$attributes, $param]);
|
$this->event->dispatch(self::AFTER_SAVE, [$attributes, $param]);
|
||||||
} catch (\Throwable $exception) {
|
} catch (\Throwable $exception) {
|
||||||
$trance->rollback();
|
$trance->rollback();
|
||||||
@@ -519,6 +521,8 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess
|
|||||||
|
|
||||||
$trance->commit();
|
$trance->commit();
|
||||||
|
|
||||||
|
$this->refresh();
|
||||||
|
|
||||||
$this->event->dispatch(self::AFTER_SAVE, [$fields, $param]);
|
$this->event->dispatch(self::AFTER_SAVE, [$fields, $param]);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user