Trait TypeMapTrait
Cake\Database\TypeMap|nullGets default types of current type map.
Returns the existing type map.
Overwrite the default type mappings for fields in the implementing object.
Creates a new TypeMap if $typeMap is an array, otherwise exchanges it for the given one.
getDefaultTypes(): array<int|string, string>
Gets default types of current type map.
array<int|string, string>getTypeMap(): Cake\Database\TypeMap
Returns the existing type map.
Cake\Database\TypeMapsetDefaultTypes(array<int|string, string> $types): $this
Overwrite the default type mappings for fields in the implementing object.
This method is useful if you need to set type mappings that are shared across multiple functions/expressions in a query.
To add a default without overwriting existing ones use getTypeMap()->addDefaults()
array<int|string, string> $types The array of types to set.
$thissetTypeMap(Cake\Database\TypeMap|array $typeMap): $this
Creates a new TypeMap if $typeMap is an array, otherwise exchanges it for the given one.
Cake\Database\TypeMap|array $typeMap Creates a TypeMap if array, otherwise sets the given TypeMap
$thisCake\Database\TypeMap|null
© 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.TypeMapTrait.html