You are here

public function TestObjectMetadata::hasAssociation in Zircon Profile 8.0

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

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

Parameters

string $fieldName:

Return value

boolean

Overrides ClassMetadata::hasAssociation

File

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

Class

TestObjectMetadata

Namespace

Doctrine\Tests\Common\Persistence

Code

public function hasAssociation($fieldName) {
  return in_array($fieldName, array(
    'parent',
    'children',
  ));
}