overrideType() public static method

Overrides an already defined type to use a different implementation.
public static overrideType ( string $name, string $className )
$name string
$className string
コード例 #1
0
ファイル: TypeTest.php プロジェクト: doctrine/couchdb-odm
 public function testOverwriteNonExistantType()
 {
     $this->setExpectedException("Doctrine\\ODM\\CouchDB\\Types\\TypeException");
     Type::overrideType('foobar', 'Doctrine\\ODM\\CouchDB\\Types\\MixedType');
 }