kernel update

This commit is contained in:
apuc committed 2024-12-16 14:26:13 +03:00
1 parent 589cf81e49
commit f5ad07c04a
77 files changed
+2067 -251

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();