eee
This commit is contained in:
@@ -191,7 +191,7 @@ class Model extends Base\Model
|
||||
*/
|
||||
public function update(array $params): static|bool
|
||||
{
|
||||
if (!$this->validator($this->rules()) || !$this->beforeSave($this)) {
|
||||
if (!$this->validator($this->rules(), $params) || !$this->beforeSave($this)) {
|
||||
return FALSE;
|
||||
}
|
||||
return $this->updateInternal(...$this->arrayIntersect($params));
|
||||
|
||||
Reference in New Issue
Block a user