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
Esempio n. 1
0
 public function testOverwriteNonExistantType()
 {
     $this->setExpectedException("Doctrine\\ODM\\CouchDB\\Types\\TypeException");
     Type::overrideType('foobar', 'Doctrine\\ODM\\CouchDB\\Types\\MixedType');
 }