public function TestObjectMetadata::getTypeOfField

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

drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/PersistentObjectTest.php, line 192

Class

TestObjectMetadata

Namespace

Doctrine\Tests\Common\Persistence

Code

public function getTypeOfField($fieldName) {
  $types = array(
    'id' => 'integer',
    'name' => 'string',
  );
  return $types[$fieldName];
}