CustomDoctrineTypesColumnDefinitionTrait
Provide shared custom doctrine types processing to all extended SchemaManager classes:
- MySQLSchemaManager
- SQLiteSchemaManager
- PostgreSQLSchemaManager
only for use in extended SchemaManager classes and not part of public core API.
Tags
Table of Contents
Methods
- getDatabaseType() : string
- Extract the field type from the definition string
- getUnquotedEnumerationValues() : array<string|int, mixed>
- processCustomDoctrineTypesColumnDefinition() : Column|null
- This method is used to handle additional processing for custom doctrine types.
Methods
getDatabaseType()
Extract the field type from the definition string
protected
getDatabaseType(string $typeDefinition) : string
Parameters
- $typeDefinition : string
Return values
stringgetUnquotedEnumerationValues()
protected
getUnquotedEnumerationValues(string $typeDefinition) : array<string|int, mixed>
Parameters
- $typeDefinition : string
Return values
array<string|int, mixed>processCustomDoctrineTypesColumnDefinition()
This method is used to handle additional processing for custom doctrine types.
protected
processCustomDoctrineTypesColumnDefinition(array<string|int, mixed> $tableColumn, AbstractPlatform $platform) : Column|null
Note: doctrine/dbal
dropped the event listener system, and this replaces the
used onSchemaColumnDefinition()
event lower than doctrine/dbal 4.x
.
Parameters
- $tableColumn : array<string|int, mixed>
- $platform : AbstractPlatform