addType() public static method

Adds a custom type to the type map.
public static addType ( string $name, string $className )
$name string Name of the type. This should correspond to what getName() returns.
$className string The class name of the custom type.
Esempio n. 1
0
 public function testAddExistantType()
 {
     $this->setExpectedException("Doctrine\\ODM\\CouchDB\\Types\\TypeException");
     Type::addType('mixed', 'Doctrine\\ODM\\CouchDB\\Types\\MixedType');
 }