Trait TypeInferenceTrait
Shared database type inference helpers.
Namespace: Cake\Database\Expression
Method Summary
-
inferType() protected
Infers the abstract type for the given value.
Method Detail
inferType() ΒΆ protected
inferType(mixed $value, Cake\Database\TypeMap|null $typeMap = null): string|null
Infers the abstract type for the given value.
Parameters
-
mixed$value The value for which to infer the type.
-
Cake\Database\TypeMap|null$typeMap optional Used to resolve the type of identifier expressions.
Returns
string|nullThe abstract type, or null if it could not be inferred.