getTypeOfField() public method

{@inheritDoc}
public getTypeOfField ( $fieldName )
Example #1
0
 public function testGetTypeOfField()
 {
     $cmi = new ClassMetadata('Doctrine\\Tests\\ODM\\PHPCR\\Mapping\\Person');
     $cmi->initializeReflection(new RuntimeReflectionService());
     $this->assertEquals(null, $cmi->getTypeOfField('some_field'));
     $cmi->fieldMappings['some_field'] = array('type' => 'some_type');
     $this->assertEquals('some_type', $cmi->getTypeOfField('some_field'));
 }