Overrides an already defined type to use a different implementation.
public static overrideType ( string $name, string $className ) | ||
$name | string | |
$className | string |
public function testOverwriteNonExistantType() { $this->setExpectedException("Doctrine\\ODM\\CouchDB\\Types\\TypeException"); Type::overrideType('foobar', 'Doctrine\\ODM\\CouchDB\\Types\\MixedType'); }