ObjectArray
class ObjectArray extends ArrayType (View source)
A datatype that replaces references to entities in arrays with a type/identifier tuple and strips singletons from the data to be stored.
Constants
private OBJECTARRAY |
|
Properties
protected | $persistenceManager | ||
protected | $reflectionService |
Methods
No description
Use a BLOB instead of CLOB
Use LARGE_OBJECT instead of STRING
No description
Converts a value from its PHP representation to its database representation of this type.
Fetches dependencies from the static object manager.
Traverses the $array and replaces known persisted objects (tuples of type and identifier) with actual instances.
Traverses the $array and replaces known persisted objects with a tuple of type and identifier.
Details
string
getName()
No description
string
getSQLDeclaration(array $column, AbstractPlatform $platform)
Use a BLOB instead of CLOB
int
getBindingType()
Use LARGE_OBJECT instead of STRING
array
convertToPHPValue($value, AbstractPlatform $platform)
No description
mixed
convertToDatabaseValue($value, AbstractPlatform $platform)
Converts a value from its PHP representation to its database representation of this type.
protected void
initializeDependencies()
Fetches dependencies from the static object manager.
Injection cannot be used, since __construct on Types\Type is final.
protected void
decodeObjectReferences(array $array)
Traverses the $array and replaces known persisted objects (tuples of type and identifier) with actual instances.
protected void
encodeObjectReferences(array $array)
Traverses the $array and replaces known persisted objects with a tuple of type and identifier.