PostgreSQLSchemaManager extends PostgreSQLSchemaManager uses CustomDoctrineTypesColumnDefinitionTrait
Extending the doctrine PostgreSQLSchemaManager to integrate additional processing stuff due to the dropped event system with `doctrine/dbal 4.x`.
For example, this is used to process custom doctrine types.
Platform specific SchemaManager are extended to manipulate the schema handling. TYPO3 needs to
do that to provide additional doctrine type handling and other workarounds or alignments. Long
time this have been done by using the doctrine EventManager
to hook into several places, which
no longer exists.
not part of the public Core API.
Tags
Table of Contents
Methods
- _getPortableTableColumnDefinition() : Column
- Gets Table Column Definition.
- getDatabaseType() : string
- Extract the field type from the definition string
- getUnquotedEnumerationValues() : array<string|int, mixed>
- parentGetPortableTableColumnDefinition() : Column
- Gets Table Column Definition.
- processCustomDoctrineTypesColumnDefinition() : Column|null
- This method is used to handle additional processing for custom doctrine types.
Methods
_getPortableTableColumnDefinition()
Gets Table Column Definition.
protected
_getPortableTableColumnDefinition(array<string, mixed> $tableColumn) : Column
Parameters
- $tableColumn : array<string, mixed>
Return values
ColumngetDatabaseType()
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>parentGetPortableTableColumnDefinition()
Gets Table Column Definition.
protected
parentGetPortableTableColumnDefinition(array<string|int, mixed> $tableColumn) : Column
This is a copy of PostgreSQLSchemaManager::_getPortableTableColumnDefinition() with a minor change to respect column comments for Doctrine Type matching and thus restoring Doctrine DBAL behaviour before v4.x.
Parameters
- $tableColumn : array<string|int, mixed>
Tags
Return values
ColumnprocessCustomDoctrineTypesColumnDefinition()
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