Beispiel #1
0
 /**
  * @dataProvider getInvalidDatabaseValues
  * @expectedException \Doctrine\DBAL\Types\ConversionException
  */
 public function testThrowsConversionExceptionOnInvalidDatabaseValue($value)
 {
     $this->type->convertToPHPValue($value, $this->platform);
 }
Beispiel #2
0
 /**
  * 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);
 }