/** * @dataProvider getInvalidDatabaseValues * @expectedException \Doctrine\DBAL\Types\ConversionException */ public function testThrowsConversionExceptionOnInvalidDatabaseValue($value) { $this->type->convertToPHPValue($value, $this->platform); }
/** * Force all fields to be the BINARY type, length 16 (the UUID binary length). */ public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform) { $fieldDeclaration['length'] = 16; $fieldDeclaration['fixed'] = true; return parent::getSQLDeclaration($fieldDeclaration, $platform); }