/**
  * Get the other contact in a relationship.
  *
  * @param int $id
  *   Relationship id.
  *
  * $returns  returns the contact ids in the realtionship
  *
  * @return \CRM_Contact_DAO_Relationship
  */
 public static function getRelationshipByID($id)
 {
     $relationship = new CRM_Contact_DAO_Relationship();
     $relationship->id = $id;
     $relationship->selectAdd();
     $relationship->selectAdd('contact_id_a, contact_id_b');
     $relationship->find(TRUE);
     return $relationship;
 }
 /**
  * Function to get the other contact in a relationship
  *
  * @param int $id relationship id
  *
  * $returns  returns the contact ids in the realtionship
  * @access public
  * @static
  */
 static function getContactIds($id)
 {
     $relationship = new CRM_Contact_DAO_Relationship();
     $relationship->id = $id;
     $relationship->selectAdd();
     $relationship->selectAdd('contact_id_a, contact_id_b');
     $relationship->find(true);
     return $relationship;
 }