diff --git a/mirzaev/baza/system/record.php b/mirzaev/baza/system/record.php index 20c5a97..2bfdb8b 100755 --- a/mirzaev/baza/system/record.php +++ b/mirzaev/baza/system/record.php @@ -72,16 +72,16 @@ class record */ public function __set(string $name, mixed $value = null): void { - if (isset($this->values[$name])) { - // Initialized the parameter + if (property_exists(static, $name)) { + // Exist the property // Writing the value and exit $this->values[$name] = $value; } else { - // Not initialized the parameter + // Not exist the property // Exit (fail) - throw new exception_domain("Not found the parameter: $name"); + throw new exception_domain("Not found the property: $name"); } }