PHP Class Ramsey\Uuid\Doctrine\UuidType

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
ファイルを表示 Open project: ramsey/uuid-doctrine

Public Methods

Method 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 method

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

convertToPHPValue() public method

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

getName() public method

public getName ( ) : string
return string

getSQLDeclaration() public method

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

requiresSQLCommentHint() public method

public requiresSQLCommentHint ( Doctrine\DBAL\Platforms\AbstractPlatform $platform ) : boolean
$platform Doctrine\DBAL\Platforms\AbstractPlatform
return boolean