You are here

public function TestObjectMetadata::hasField in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/PersistentObjectTest.php \Doctrine\Tests\Common\Persistence\TestObjectMetadata::hasField()

Checks if the given field is a mapped property for this class.

Parameters

string $fieldName:

Return value

boolean

Overrides ClassMetadata::hasField

File

vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/PersistentObjectTest.php, line 203

Class

TestObjectMetadata

Namespace

Doctrine\Tests\Common\Persistence

Code

public function hasField($fieldName) {
  return in_array($fieldName, array(
    'id',
    'name',
  ));
}