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
Namespace
Doctrine\Tests\Common\PersistenceCode
public function getAssociationMappedByTargetField($assocName) {
$assoc = array(
'children' => 'parent',
);
return $assoc[$assocName];
}