SetType

class \TYPO3\CMS\Core\Database\Schema\Types\SetType

Extends
Type

Type that maps a TYPE field.

Tags

todo

SetType does not work for SQLite and PostgresSQL. SQLite supports it with a slightly other syntax and PostgreSQL needs to create a custom type with a human-readable name, which is not reasonable either. Consider to deprecate and drop ENUM support due not having compatibility for all supported database systems.

Table of Contents

Constants

TYPE  : mixed = 'set'

Methods

getSQLDeclaration()  : string
Gets the SQL declaration snippet for a field of this type.

Constants

Methods

getSQLDeclaration()

Gets the SQL declaration snippet for a field of this type.

public getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform) : string

Parameters

$fieldDeclaration : array

The field declaration.

$platform : AbstractPlatform

The currently used database platform.

Return values

string
On this page