some fix
This commit is contained in:
@ -59,6 +59,16 @@ class FormModel
|
||||
return false;
|
||||
}
|
||||
|
||||
public function validateForUpdate(): bool
|
||||
{
|
||||
$res = $this->validator->validate($this->data, $this->rulesForUpdate());
|
||||
if (!$res) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getErrors(): array
|
||||
{
|
||||
return $this->validator->getProcessedErrors();
|
||||
|
Reference in New Issue
Block a user