class UuidType extends Type (View source)

Field type mapping for the Doctrine Database Abstraction Layer (DBAL).

UUID fields will be stored as a string in the database and converted back to the Uuid value object when querying.

Constants

NAME

Methods

getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform)

{@inheritdoc}

convertToPHPValue(string|null $value, AbstractPlatform $platform)

{@inheritdoc}

convertToDatabaseValue(Uuid|null $value, AbstractPlatform $platform)

{@inheritdoc}

string
getName()

{@inheritdoc}

boolean
requiresSQLCommentHint(AbstractPlatform $platform)

{@inheritdoc}

Details

getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform)

{@inheritdoc}

Parameters

array $fieldDeclaration
AbstractPlatform $platform

convertToPHPValue(string|null $value, AbstractPlatform $platform)

{@inheritdoc}

Parameters

string|null $value
AbstractPlatform $platform

convertToDatabaseValue(Uuid|null $value, AbstractPlatform $platform)

{@inheritdoc}

Parameters

Uuid|null $value
AbstractPlatform $platform

string getName()

{@inheritdoc}

Return Value

string

boolean requiresSQLCommentHint(AbstractPlatform $platform)

{@inheritdoc}

Parameters

AbstractPlatform $platform

Return Value

boolean