EnumType
extends Type
in package
Generic ENUM type to make 'enum' available as a type to doctrine.
Mappings using the 'enum' type will be replaced during run-time so they use a specific sub-class of this class for each field. The respective classes are automatically generated.
Tags
Table of Contents
Properties
- $values : array<string|int, mixed>
- This needs to be filled by sub-classes
Methods
- getDefaultLength() : mixed
- {@inheritdoc}
- getName() : mixed
- {@inheritdoc}
- getSQLDeclaration() : mixed
- {@inheritdoc}
Properties
$values
This needs to be filled by sub-classes
protected
array<string|int, mixed>
$values
= array()
List of possible values for this ENUM
Methods
getDefaultLength()
{@inheritdoc}
public
getDefaultLength(AbstractPlatform $platform) : mixed
Parameters
- $platform : AbstractPlatform
getName()
{@inheritdoc}
public
getName() : mixed
getSQLDeclaration()
{@inheritdoc}
public
getSQLDeclaration(array<string|int, mixed> $fieldDeclaration, AbstractPlatform $platform) : mixed
Parameters
- $fieldDeclaration : array<string|int, mixed>
- $platform : AbstractPlatform