改名
This commit is contained in:
@@ -387,8 +387,8 @@ abstract class BaseActiveRecord extends Component implements IOrm, \ArrayAccess
|
|||||||
$trance->rollback();
|
$trance->rollback();
|
||||||
$result = $this->addError($this->getLastError());
|
$result = $this->addError($this->getLastError());
|
||||||
} else {
|
} else {
|
||||||
$result = static::populate($this->_attributes);
|
|
||||||
$trance->commit();
|
$trance->commit();
|
||||||
|
$result = $this->refresh();
|
||||||
$this->afterSave($attributes, $param);
|
$this->afterSave($attributes, $param);
|
||||||
}
|
}
|
||||||
return $result;
|
return $result;
|
||||||
|
|||||||
Reference in New Issue
Block a user