just another orm...
View the Project on GitHub tflori/orm
» API Reference » ORM\Entity\Validation
public static function describe(): \ORM\Dbal\Table|\ORM\Dbal\Column[]
| Static | This method is static. | |
| Returns | ORM\Dbal\Table|ORM\Dbal\Column[] |
ORM\Entity\Validation::describe
public static function disableValidator(bool $disable = true): mixed
| Static | This method is static. | |
| Returns | mixed |
| Parameter | Type | Description |
|---|---|---|
$disable |
bool |
ORM\Entity\Validation::disableValidator
public static function enableValidator(bool $enable = true): mixed
| Static | This method is static. | |
| Returns | mixed |
| Parameter | Type | Description |
|---|---|---|
$enable |
bool |
ORM\Entity\Validation::enableValidator
public function isValid(): bool|\ORM\Dbal\Error[]
Returns boolean true when valid otherwise an array of Errors.
| Returns | bool|ORM\Dbal\Error[] |
ORM\Entity\Validation::isValid
public static function isValidatorEnabled(): bool
| Static | This method is static. | |
| Returns | bool |
ORM\Entity\Validation::isValidatorEnabled
public static function validate(
string $attribute,
mixed $value,
): bool|\ORM\Dbal\Error
| Static | This method is static. | |
| Returns | bool|ORM\Dbal\Error |
| Parameter | Type | Description |
|---|---|---|
$attribute |
string | |
$value |
mixed |
ORM\Entity\Validation::validate
public static function validateArray(array $data): array
$data has to be an array of $attribute => $value
| Static | This method is static. | |
| Returns | array |
| Parameter | Type | Description |
|---|---|---|
$data |
array |
ORM\Entity\Validation::validateArray