Trait TypeMapTrait
        
    Namespace: Cake\Database
    
    
    
      
  
      Property Summary
- 
        $_typeMap protected
Cake\Database\TypeMap 
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|null $types = null): $this|array
      Allows setting default types when chaining query
Parameters
- 
                
array|null$types optional The array of types to set.
Returns
$this|arraytypeMap() ¶ public
typeMap(array|Cake\Database\TypeMap|null $typeMap = null): $this|Cake\Database\TypeMap
      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|null$typeMap optional Creates a TypeMap if array, otherwise sets the given TypeMap
Returns
$this|Cake\Database\TypeMap