Doctrine\DBAL\Types\SimpleArrayType
Array Type which can be used for simple values.
Only use this type if you are sure that your values cannot contain a ",".
- Author: Johannes M. Schmitt <schmittjoh@gmail.com>
Synopsis
class SimpleArrayType
extends Type
{
- // Inherited constants from Type
- const TARRAY = 'array';
- const SIMPLE_ARRAY = 'simple_array';
- const JSON_ARRAY = 'json_array';
- const BIGINT = 'bigint';
- const BOOLEAN = 'boolean';
- const DATETIME = 'datetime';
- const DATETIMETZ = 'datetimetz';
- const DATE = 'date';
- const TIME = 'time';
- const DECIMAL = 'decimal';
- const INTEGER = 'integer';
- const OBJECT = 'object';
- const SMALLINT = 'smallint';
- const STRING = 'string';
- const TEXT = 'text';
- const BLOB = 'blob';
- const FLOAT = 'float';
- const GUID = 'guid';
- // methods
- public void getSQLDeclaration()
- public void convertToDatabaseValue()
- public void convertToPHPValue()
- public void getName()
- public void requiresSQLCommentHint()
- // Inherited methods from Type
- public mixed convertToDatabaseValue()
- public mixed convertToPHPValue()
- public void getDefaultLength()
- public abstract void getSQLDeclaration()
- public abstract string getName()
- public static Type getType()
- public static void addType()
- public static boolean hasType()
- public static void overrideType()
- public integer getBindingType()
- public static array getTypesMap()
- public void __toString()
- public bool canRequireSQLConversion()
- public string convertToDatabaseValueSQL()
- public string convertToPHPValueSQL()
- public array getMappedDatabaseTypes()
- public bool requiresSQLCommentHint()
Hierarchy
Extends
Tasks
Line | Task |
---|---|
114+ | Needed? |
133+ | Needed? |
Constants
Name | Value |
---|---|
TARRAY | 'array' |
SIMPLE_ARRAY | 'simple_array' |
JSON_ARRAY | 'json_array' |
BIGINT | 'bigint' |
BOOLEAN | 'boolean' |
DATETIME | 'datetime' |
DATETIMETZ | 'datetimetz' |
DATE | 'date' |
TIME | 'time' |
DECIMAL | 'decimal' |
INTEGER | 'integer' |
OBJECT | 'object' |
SMALLINT | 'smallint' |
STRING | 'string' |
TEXT | 'text' |
BLOB | 'blob' |
FLOAT | 'float' |
GUID | 'guid' |
Methods
public
Inherited from Doctrine\DBAL\Types\Type
public
- __toString()
- addType() — Adds a custom type to the type map.
- canRequireSQLConversion() — Does working with this column require SQL conversion functions?
- convertToDatabaseValue() — Converts a value from its PHP representation to its database representation of this type.
- convertToDatabaseValueSQL() — Modifies the SQL expression (identifier, parameter) to convert to a database value.
- convertToPHPValue() — Converts a value from its database representation to its PHP representation of this type.
- convertToPHPValueSQL() — Modifies the SQL expression (identifier, parameter) to convert to a PHP value.
- getBindingType() — Gets the (preferred) binding type for values of this type that can be used when binding parameters to prepared statements.
- getDefaultLength() — Gets the default length of this type.
- getMappedDatabaseTypes() — Get an array of database types that map to this Doctrine type.
- getName() — Gets the name of this type.
- getSQLDeclaration() — Gets the SQL declaration snippet for a field of this type.
- getType() — Factory method to create type instances.
- getTypesMap() — Get the types array map which holds all registered types and the corresponding type class
- hasType() — Checks if exists support for a type.
- overrideType() — Overrides an already defined type to use a different implementation.
- requiresSQLCommentHint() — If this Doctrine Type maps to an already mapped database type, reverse schema engineering can't take them apart. You need to mark one of those types as commented, which will have Doctrine use an SQL comment to typehint the actual Doctrine Type.