Trait TypeMapTrait

Direct Known Users

Cake\Database\Expression\QueryExpression, Cake\Database\Query

Indirect Known Users

Cake\ORM\Query
Namespace: Cake\Database
Located at Database/TypeMapTrait.php

Method Detail

defaultTypessource public

defaultTypes( array $types null )

Allows setting default types when chaining query

Parameters

array $types optional null
The array of types to set.

Returns

mixed
$this|array

typeMapsource 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

mixed
$this|TypeMap

Properties summary

$_typeMapsource

protected Cake\Database\TypeMap

© 2005–2016 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.
http://api.cakephp.org/3.1/class-Cake.Database.TypeMapTrait.html