PHP Class Ramsey\Uuid\Doctrine\UuidBinaryType

UUID fields will be stored as a string in the database and converted back to the Uuid value object when querying.
Inheritance: extends Doctrine\DBAL\Types\Type
Afficher le fichier Open project: ramsey/uuid-doctrine

Méthodes publiques

Méthode Description
convertToDatabaseValue ( Ramsey\Uuid\Uuid | null $value, Doctrine\DBAL\Platforms\AbstractPlatform $platform )
convertToPHPValue ( string | null $value, Doctrine\DBAL\Platforms\AbstractPlatform $platform )
getName ( ) : string
getSQLDeclaration ( array $fieldDeclaration, Doctrine\DBAL\Platforms\AbstractPlatform $platform )
requiresSQLCommentHint ( Doctrine\DBAL\Platforms\AbstractPlatform $platform ) : boolean

Method Details

convertToDatabaseValue() public méthode

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

convertToPHPValue() public méthode

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

getName() public méthode

public getName ( ) : string
Résultat string

getSQLDeclaration() public méthode

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

requiresSQLCommentHint() public méthode

public requiresSQLCommentHint ( Doctrine\DBAL\Platforms\AbstractPlatform $platform ) : boolean
$platform Doctrine\DBAL\Platforms\AbstractPlatform
Résultat boolean