改名
This commit is contained in:
@@ -494,7 +494,7 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess
|
|||||||
public function save($data = NULL): static|bool
|
public function save($data = NULL): static|bool
|
||||||
{
|
{
|
||||||
if (!is_null($data)) {
|
if (!is_null($data)) {
|
||||||
$this->attributes = $data;
|
$this->_attributes = merge($this->_attributes, $data);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$this->validator($this->rules())) {
|
if (!$this->validator($this->rules())) {
|
||||||
|
|||||||
Reference in New Issue
Block a user