Trait TypeMapTrait
Trait TypeMapTrait
Direct Users
Indirect Users
Properties summary
-
$_typeMap
protected
Method Summary
-
defaultTypes() public
Allows setting default types when chaining query -
getDefaultTypes() public
Gets default types of current type map. -
getTypeMap() public
Returns the existing type map. -
setDefaultTypes() public
Allows setting default types when chaining query. -
setTypeMap() public
Creates a new TypeMap if $typeMap is an array, otherwise exchanges it for the given one. -
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
Deprecated
3.4.0 Use setDefaultTypes()/getDefaultTypes() instead.
Parameters
- array $types optional null
- The array of types to set.
Returns
$this|array
setDefaultTypes() public ¶
setDefaultTypes( array $types )
Allows setting default types when chaining query.
Parameters
- array $types
- The array of types to set.
Returns
$this
setTypeMap() public ¶
setTypeMap( array|Cake\Database\TypeMap
$typeMap )
Creates a new TypeMap if $typeMap is an array, otherwise exchanges it for the given one.
Parameters
-
array|
Cake\Database\TypeMap
$typeMap - Creates a TypeMap if array, otherwise sets the given TypeMap
Returns
$this
typeMap() public ¶
typeMap( array|Cake\Database\TypeMap
|null $typeMap null )
Creates a new TypeMap if $typeMap is an array, otherwise returns the existing type map or exchanges it for the given one.
Deprecated
3.4.0 Use setTypeMap()/getTypeMap() instead.
Parameters
-
array|
Cake\Database\TypeMap
|null $typeMap optional null - Creates a TypeMap if array, otherwise sets the given TypeMap
Returns
$this|\Cake\Database\TypeMap