This commit is contained in:
2021-02-25 17:25:30 +08:00
parent 2f1e4235c6
commit e1fa0a6b12
3 changed files with 16 additions and 19 deletions
+3 -3
View File
@@ -167,13 +167,13 @@ class ActiveRecord extends BaseActiveRecord
/**
* @param array $attributes
* @param array $fields
* @return ActiveRecord|bool
* @throws Exception
*/
public function update(array $attributes): static|bool
public function update(array $fields): static|bool
{
return $this->save($attributes);
return $this->save($fields);
}
/**