This commit is contained in:
stasbilay02 committed 2024-12-03 12:13:18 +03:00
1 parent c0bedcb5ee
commit aff394ae72
6 files changed
+49 -5

No files matched your search

+10
View File
@@ -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();