public function TestObjectMetadata::getAssociationMappedByTargetField

Returns the target field of the owning side of the association

Parameters

string $assocName:

Return value

string

Overrides ClassMetadata::getAssociationMappedByTargetField

File

drupal/core/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];
}