改名
This commit is contained in:
@@ -415,7 +415,7 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess
|
|||||||
throw new Exception('保存失败.' . $sqlBuilder);
|
throw new Exception('保存失败.' . $sqlBuilder);
|
||||||
}
|
}
|
||||||
$trance->commit();
|
$trance->commit();
|
||||||
$this->setPrimary($lastId, $param);
|
$this->setPrimary($lastId = (int)$lastId, $param);
|
||||||
|
|
||||||
$this->event->dispatch(self::AFTER_SAVE, [$attributes, $param]);
|
$this->event->dispatch(self::AFTER_SAVE, [$attributes, $param]);
|
||||||
} catch (\Throwable $exception) {
|
} catch (\Throwable $exception) {
|
||||||
|
|||||||
Reference in New Issue
Block a user