ColumnMapFactory

Internal

only to be used within Extbase, not part of TYPO3 Core API.

Table of Contents

Methods

__construct()  : mixed
create()  : ColumnMap
setOneToManyRelation()  : ColumnMap
This method sets the configuration for a 1:n relation based on the $TCA column configuration
setDateTimeStorageFormat()  : ColumnMap
Sets datetime storage format based on $TCA column configuration.
setManyToManyRelation()  : ColumnMap
This method sets the configuration for a m:n relation based on the $TCA column configuration
setOneToOneRelation()  : ColumnMap
This method sets the configuration for a 1:1 relation based on the $TCA column configuration
setRelations()  : ColumnMap
This method tries to determine the type of relation to other tables and sets it based on the $TCA column configuration
setType()  : ColumnMap
Set the table column type

Methods

create()

public create(string $columnName, array<string|int, mixed> $columnDefinition, string $propertyName, string $className) : ColumnMap
Parameters
$columnName : string
$columnDefinition : array<string|int, mixed>
$propertyName : string
$className : string
Return values
ColumnMap

setOneToManyRelation()

This method sets the configuration for a 1:n relation based on the $TCA column configuration

public setOneToManyRelation(ColumnMap $columnMap[, array<string|int, mixed>|null $columnConfiguration = null ]) : ColumnMap
Parameters
$columnMap : ColumnMap

The column map

$columnConfiguration : array<string|int, mixed>|null = null

The column configuration from $TCA

Internal
Return values
ColumnMap

setDateTimeStorageFormat()

Sets datetime storage format based on $TCA column configuration.

protected setDateTimeStorageFormat(ColumnMap $columnMap[, array<string|int, mixed>|null $columnConfiguration = null ]) : ColumnMap
Parameters
$columnMap : ColumnMap

The column map

$columnConfiguration : array<string|int, mixed>|null = null

The column configuration from $TCA

Return values
ColumnMap

setManyToManyRelation()

This method sets the configuration for a m:n relation based on the $TCA column configuration

protected setManyToManyRelation(ColumnMap $columnMap[, array<string|int, mixed>|null $columnConfiguration = null ]) : ColumnMap
Parameters
$columnMap : ColumnMap

The column map

$columnConfiguration : array<string|int, mixed>|null = null

The column configuration from $TCA

Tags
throws
UnsupportedRelationException
Return values
ColumnMap

setOneToOneRelation()

This method sets the configuration for a 1:1 relation based on the $TCA column configuration

protected setOneToOneRelation(ColumnMap $columnMap[, array<string|int, mixed>|null $columnConfiguration = null ]) : ColumnMap
Parameters
$columnMap : ColumnMap

The column map

$columnConfiguration : array<string|int, mixed>|null = null

The column configuration from $TCA

Return values
ColumnMap

setRelations()

This method tries to determine the type of relation to other tables and sets it based on the $TCA column configuration

protected setRelations(ColumnMap $columnMap, array<string|int, mixed>|null $columnConfiguration, string|null $type, string|null $elementType) : ColumnMap
Parameters
$columnMap : ColumnMap

The column map

$columnConfiguration : array<string|int, mixed>|null

The column configuration from $TCA

$type : string|null
$elementType : string|null
Return values
ColumnMap

setType()

Set the table column type

protected setType(ColumnMap $columnMap, array<string|int, mixed> $columnConfiguration) : ColumnMap
Parameters
$columnMap : ColumnMap
$columnConfiguration : array<string|int, mixed>
Return values
ColumnMap

        
On this page

Search results