Example #1
0
 public function testReturnsSQLDeclaration()
 {
     $this->assertSame('DUMMYBINARY', $this->type->getSQLDeclaration(array(), $this->platform));
 }
Example #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);
 }