Type
The base class for so-called Doctrine mapping types.
A Type object is obtained by calling the static Type::getType()
method.
Direct known subclasses
ArrayType, BigIntType, TextType, TimeType, BooleanType, DateTimeType, DateType, DecimalType, FloatType, IntegerType, ObjectType, StringType
protected
|
|
public
mixed
|
#
convertToDatabaseValue( mixed $value,
Converts a value from its PHP representation to its database representation of this type. |
public
mixed
|
#
convertToPHPValue( mixed $value,
Converts a value from its database representation to its PHP representation of this type. |
public
|
|
abstract public
|
#
getSqlDeclaration( array $fieldDeclaration,
Gets the SQL declaration snippet for a field of this type. |
abstract public
string
|
|
public
integer
|
|
public static
Doctrine\DBAL\Types\Type
|
|
public static
|
|
public static
boolean
|
|
public static
|
#
overrideType( string $name, string $className )
Overrides an already defined type to use a different implementation. |
integer |
CODE_BOOL
|
#
5
|
integer |
CODE_NULL
|
#
0
|
integer |
CODE_INT
|
#
1
|
integer |
CODE_STR
|
#
2
|
integer |
CODE_LOB
|
#
3
|
protected static
array
|
$_typeObjects
Map of already instantiated type objects. One instance per type (flyweight). |
#
array()
|