src/wcmf/application/controller/RESTController.php
protected function getRelatedType(ObjectId $sourceOid, $role) {
    $persistenceFacade = $this->getPersistenceFacade();
    $sourceMapper = $persistenceFacade->getMapper($sourceOid->getType());
    $relation = $sourceMapper->getRelation($role);
    return $relation->getOtherType();
  }
protected function getRelatedType(ObjectId $sourceOid, $role) {
    $persistenceFacade = $this->getPersistenceFacade();
    $sourceMapper = $persistenceFacade->getMapper($sourceOid->getType());
    $relation = $sourceMapper->getRelation($role);
    return $relation->getOtherType();
  }
protected function getRelatedType ( ObjectId $ sourceOid , $ role ) { $ persistenceFacade = $ this -> getPersistenceFacade ( ) ; $ sourceMapper = $ persistenceFacade -> getMapper ( $ sourceOid -> getType ( ) ) ; $ relation = $ sourceMapper -> getRelation ( $ role ) ; return $ relation -> getOtherType ( ) ; }
Get the type that is used in the given role related to the
given source object.
@param $sourceOid ObjectId of the source object
@param $role The role name
@return String
Get the type that is used in the given role related to the given source object .