コード例 #1
0
ファイル: BinaryTest.php プロジェクト: selimcr/servigases
 /**
  * @dataProvider getInvalidDatabaseValues
  * @expectedException \Doctrine\DBAL\Types\ConversionException
  */
 public function testThrowsConversionExceptionOnInvalidDatabaseValue($value)
 {
     $this->type->convertToPHPValue($value, $this->platform);
 }
コード例 #2
0
ファイル: BinaryUuid.php プロジェクト: einstein95/FAOpen
 /**
  * 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);
 }