public function TestObjectMetadata::getTypeOfField in Plug 7
Returns a type name of this field.
This type names can be implementation specific but should at least include the php types: integer, string, boolean, float/double, datetime.
Parameters
string $fieldName:
Return value
string
Overrides ClassMetadata::getTypeOfField
File
- lib/
doctrine/ common/ tests/ Doctrine/ Tests/ Common/ Persistence/ PersistentObjectTest.php, line 192
Class
Namespace
Doctrine\Tests\Common\PersistenceCode
public function getTypeOfField($fieldName) {
$types = array(
'id' => 'integer',
'name' => 'string',
);
return $types[$fieldName];
}