Trait TypeMapTrait
Indirect Users
Properties summary
-
$_typeMap
protected
Method Summary
-
defaultTypes() public
Allows setting default types when chaining query -
typeMap() public
Creates a new TypeMap if $typeMap is an array, otherwise returns the existing type map or exchanges it for the given one.
Method Detail
defaultTypes() public ¶
defaultTypes( array $types = null )
Allows setting default types when chaining query
Parameters
- array $types optional null
- The array of types to set.
Returns
$this|array
typeMap() public ¶
typeMap( array|Cake\Database\TypeMap
$typeMap = null )
Creates a new TypeMap if $typeMap is an array, otherwise returns the existing type map or exchanges it for the given one.
Parameters
-
array|
Cake\Database\TypeMap
$typeMap optional null - Creates a TypeMap if array, otherwise sets the given TypeMap
Returns
$this|TypeMap