SchemaColumnDefinitionListener

Event listener to handle additional processing for custom doctrine types.

Table of Contents

Methods

onSchemaColumnDefinition()  : mixed
Listener for column definition events. This intercepts definitions for custom doctrine types and builds the appropriate Column Object.
getDatabaseType()  : string
Extract the field type from the definition string
getEnumerationTableColumnDefinition()  : Column
Build a Doctrine column object for TYPE/TYPE columns.
getUnquotedEnumerationValues()  : array<string|int, mixed>

Methods

onSchemaColumnDefinition()

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

public onSchemaColumnDefinition(SchemaColumnDefinitionEventArgs $event) : mixed
Parameters
$event : SchemaColumnDefinitionEventArgs
Tags
throws
Exception

getDatabaseType()

Extract the field type from the definition string

protected getDatabaseType(string $typeDefinition) : string
Parameters
$typeDefinition : string
Return values
string

getEnumerationTableColumnDefinition()

Build a Doctrine column object for TYPE/TYPE columns.

protected getEnumerationTableColumnDefinition(array<string|int, mixed> $tableColumn, AbstractPlatform $platform) : Column
Parameters
$tableColumn : array<string|int, mixed>
$platform : AbstractPlatform
Tags
throws
Exception
todo:

The $tableColumn source currently only support MySQL definition style.

Return values
Column

getUnquotedEnumerationValues()

protected getUnquotedEnumerationValues(string $typeDefinition) : array<string|int, mixed>
Parameters
$typeDefinition : string
Return values
array<string|int, mixed>

        
On this page

Search results