ColumnMapFactory

class \TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMapFactory

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 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 $columnDefinition, string $propertyName, string $className) : ColumnMap

Parameters

$columnName : string
$columnDefinition : array
$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|null $columnConfiguration = null ]) : ColumnMap

Parameters

$columnMap : ColumnMap

The column map

$columnConfiguration : array|null = null

The column configuration from $TCA

Return values

ColumnMap

setDateTimeStorageFormat()

Sets datetime storage format based on $TCA column configuration.

protected setDateTimeStorageFormat(ColumnMap $columnMap[, array|null $columnConfiguration = null ]) : ColumnMap

Parameters

$columnMap : ColumnMap

The column map

$columnConfiguration : array|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|null $columnConfiguration = null ]) : ColumnMap

Parameters

$columnMap : ColumnMap

The column map

$columnConfiguration : array|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|null $columnConfiguration = null ]) : ColumnMap

Parameters

$columnMap : ColumnMap

The column map

$columnConfiguration : array|null = null

The column configuration from $TCA

Return values

ColumnMap

setRelations()

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

protected setRelations(ColumnMap $columnMap, array|null $columnConfiguration, string|null $type, string|null $elementType) : ColumnMap

Parameters

$columnMap : ColumnMap

The column map

$columnConfiguration : array|null

The column configuration from $TCA

$type : string|null
$elementType : string|null

Return values

ColumnMap
On this page