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.

 Methods

{@inheritdoc}

convertToDatabaseValue(\Rhumsaa\Uuid\Uuid | null $value, \Doctrine\DBAL\Platforms\AbstractPlatform $platform) 

Parameters

$value

\Rhumsaa\Uuid\Uuidnull

$platform

\Doctrine\DBAL\Platforms\AbstractPlatform

{@inheritdoc}

convertToPHPValue(string | null $value, \Doctrine\DBAL\Platforms\AbstractPlatform $platform) 

Parameters

$value

stringnull

$platform

\Doctrine\DBAL\Platforms\AbstractPlatform

{@inheritdoc}

getName() : string

Returns

string

{@inheritdoc}

getSQLDeclaration(array $fieldDeclaration, \Doctrine\DBAL\Platforms\AbstractPlatform $platform) 

Parameters

$fieldDeclaration

array

$platform

\Doctrine\DBAL\Platforms\AbstractPlatform

 Constants

 

NAME

NAME : string