This commit is contained in:
2021-02-25 18:15:54 +08:00
parent 09c527786a
commit 44402f7058
+1 -1
View File
@@ -494,7 +494,7 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess
public function save($data = NULL): static|bool
{
if (!is_null($data)) {
$this->attributes = $data;
$this->_attributes = merge($this->_attributes, $data);
}
if (!$this->validator($this->rules())) {