‪TYPO3CMS  11.5
TYPO3\CMS\Core\Database\Schema\EventListener\SchemaColumnDefinitionListener Class Reference

Public Member Functions

 onSchemaColumnDefinition (SchemaColumnDefinitionEventArgs $event)
 

Protected Member Functions

Doctrine DBAL Schema Column getEnumerationTableColumnDefinition (array $tableColumn, AbstractPlatform $platform)
 
string getDatabaseType (string $typeDefinition)
 
array getUnquotedEnumerationValues (string $typeDefinition)
 

Detailed Description

Event listener to handle additional processing for custom doctrine types.

Definition at line 29 of file SchemaColumnDefinitionListener.php.

Member Function Documentation

◆ getDatabaseType()

string TYPO3\CMS\Core\Database\Schema\EventListener\SchemaColumnDefinitionListener::getDatabaseType ( string  $typeDefinition)
protected

◆ getEnumerationTableColumnDefinition()

Doctrine DBAL Schema Column TYPO3\CMS\Core\Database\Schema\EventListener\SchemaColumnDefinitionListener::getEnumerationTableColumnDefinition ( array  $tableColumn,
AbstractPlatform  $platform 
)
protected

Build a Doctrine column object for TYPE/TYPE columns.

Parameters
array$tableColumn
\Doctrine\DBAL\Platforms\AbstractPlatform$platform
Returns
‪\Doctrine\DBAL\Schema\Column
Exceptions

Definition at line 66 of file SchemaColumnDefinitionListener.php.

References TYPO3\CMS\Core\Database\Schema\EventListener\SchemaColumnDefinitionListener\getDatabaseType(), and TYPO3\CMS\Core\Database\Schema\EventListener\SchemaColumnDefinitionListener\getUnquotedEnumerationValues().

Referenced by TYPO3\CMS\Core\Database\Schema\EventListener\SchemaColumnDefinitionListener\onSchemaColumnDefinition().

◆ getUnquotedEnumerationValues()

array TYPO3\CMS\Core\Database\Schema\EventListener\SchemaColumnDefinitionListener::getUnquotedEnumerationValues ( string  $typeDefinition)
protected

◆ onSchemaColumnDefinition()

TYPO3\CMS\Core\Database\Schema\EventListener\SchemaColumnDefinitionListener::onSchemaColumnDefinition ( SchemaColumnDefinitionEventArgs  $event)

Listener for column definition events. This intercepts definitions for custom doctrine types and builds the appropriate Column Object.

Parameters
\Doctrine\DBAL\Event\SchemaColumnDefinitionEventArgs$event
Exceptions

Definition at line 38 of file SchemaColumnDefinitionListener.php.

References TYPO3\CMS\Core\Database\Schema\EventListener\SchemaColumnDefinitionListener\getDatabaseType(), and TYPO3\CMS\Core\Database\Schema\EventListener\SchemaColumnDefinitionListener\getEnumerationTableColumnDefinition().