just another orm...
View the Project on GitHub tflori/orm
» API Reference » ORM\Dbal\Type\VarChar
Extends: ORM\Dbal\Type
With and without max / fixed length
public function __construct(int $maxLength = null)
Parameter | Type | Description |
---|---|---|
$maxLength |
int |
ORM\Dbal\Type\VarChar::__construct
public static function factory(
\ORM\Dbal\Dbal $dbal,
array $columnDefinition,
): static
This method is only for types covered by mapping. Use fromDefinition instead for custom types.
Static | This method is static. | |
Returns | static |
Parameter | Type | Description |
---|---|---|
$dbal |
ORM\Dbal\Dbal | |
$columnDefinition |
array |
ORM\Dbal\Type\VarChar::factory
public static function fits(array $columnDefinition): bool
Static | This method is static. | |
Returns | bool |
Parameter | Type | Description |
---|---|---|
$columnDefinition |
array |
ORM\Dbal\Type\VarChar::fits
public function getMaxLength(): int
Returns | int |
ORM\Dbal\Type\VarChar::getMaxLength
public function validate(mixed $value): bool|\ORM\Dbal\Error
Returns | bool|ORM\Dbal\Error |
Parameter | Type | Description |
---|---|---|
$value |
mixed |
ORM\Dbal\Type\VarChar::validate