You are here

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

TestObjectMetadata

Namespace

Doctrine\Tests\Common\Persistence

Code

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