Type converter trait
Converts a give value to a suitable database value based on type and return relevant internal statement type
Matches columns to corresponding types
cast(mixed $value, Cake\Database\TypeInterface|string|int $type = 'string'): array
Converts a give value to a suitable database value based on type and return relevant internal statement type
mixed $value The value to cast
Cake\Database\TypeInterface|string|int $type optional The type name or type instance to use.
arraymatchTypes(array $columns, array $types): array
Matches columns to corresponding types
Both $columns and $types should either be numeric based or string key based at the same time.
array $columns list or associative array of columns and parameters to be bound with types
array $types list or associative array of types
array
© 2005–present The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/4.4/trait-Cake.Database.TypeConverterTrait.html