You are here

public function TestObjectMetadata::getAssociationMappedByTargetField 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::getAssociationMappedByTargetField()

Returns the target field of the owning side of the association.

Parameters

string $assocName:

Return value

string

Overrides ClassMetadata::getAssociationMappedByTargetField

File

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

Class

TestObjectMetadata

Namespace

Doctrine\Tests\Common\Persistence

Code

public function getAssociationMappedByTargetField($assocName) {
  $assoc = array(
    'children' => 'parent',
  );
  return $assoc[$assocName];
}