You are here

public function TestObjectMetadata::getAssociationMappedByTargetField in Plug 7

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

Parameters

string $assocName:

Return value

string

Overrides ClassMetadata::getAssociationMappedByTargetField

File

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