ColumnMapFactory
Read onlyYes
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
- 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
Methods
__construct()
public
__construct(ReflectionService $reflectionService) : mixed
Parameters
- $reflectionService : ReflectionService
create()
public
create(FieldTypeInterface $field, string $propertyName, string $className) : ColumnMap
Parameters
- $field : FieldTypeInterface
- $propertyName : string
- $className : string
Return values
ColumnMapsetOneToManyRelation()
This method sets the configuration for a 1:n relation based on the $TCA column configuration
public
setOneToManyRelation(ColumnMap $columnMap, FieldTypeInterface $field) : ColumnMap
Parameters
- $columnMap : ColumnMap
- $field : FieldTypeInterface
Return values
ColumnMapsetManyToManyRelation()
This method sets the configuration for a m:n relation based on the $TCA column configuration
protected
setManyToManyRelation(ColumnMap $columnMap, FieldTypeInterface $field) : ColumnMap
Parameters
- $columnMap : ColumnMap
- $field : FieldTypeInterface
Return values
ColumnMapsetOneToOneRelation()
This method sets the configuration for a 1:1 relation based on the $TCA column configuration
protected
setOneToOneRelation(ColumnMap $columnMap, FieldTypeInterface $field) : ColumnMap
Parameters
- $columnMap : ColumnMap
- $field : FieldTypeInterface
Return values
ColumnMapsetRelations()
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, FieldTypeInterface $field, string|null $type, string|null $elementType) : ColumnMap
Parameters
- $columnMap : ColumnMap
- $field : FieldTypeInterface
- $type : string|null
- $elementType : string|null