title: get_relationships not fetching data using sugarcrm api
body: <p>I am using the SugarCRM API get_relationships() to fetch Cases related to an Account. I'm getting Account data properly and passing the session &amp; Account id to get the related data. But get_relationships() is giving me only field name and not field values. Below is my code:</p>
  
  <pre><code>$get_relationships_parameters = array(
      'session' =&gt; $session_id,
      'module_name' =&gt; 'Accounts',
      'module_id' =&gt; $accountId,
      'link_field_name' =&gt; 'cases',
      //'related_fields' =&gt; array('cases.id','cases.name'),
      'related_module_query' =&gt; "",
      'deleted' =&gt; 0
  );
  $casedata = call("get_relationships", $get_relationships_parameters, $url);
  </code></pre>
  
  <p>I am getting the result as:</p>
  
  <pre><code>stdClass Object
  (
   [entry_list] =&gt; Array
      (
          [0] =&gt; stdClass Object
              (
                  [id] =&gt; 
                  [module_name] =&gt; Cases
                  [name_value_list] =&gt; stdClass Object
                      (
                          [deleted] =&gt; stdClass Object
                              (
                                  [name] =&gt; deleted
                                  [value] =&gt; 0
                              )
  
  
          )
  
              )
  
      )
  
    [relationship_list] =&gt; Array
      (
      )
  </code></pre>
  
  <p>As you can see the values are empty for id &amp; [name] => stdClass Object is missing. If i comment out the line 'related_fields' => array('cases.id','cases.name'), I am getting a blank array as:</p>
  
  <pre><code>stdClass Object
  ( 
   [entry_list] =&gt; Array
      (
      )
  
  [relationship_list] =&gt; Array
      (
      )
   )   
  </code></pre>
  
  <p>What might be the reason for this?</p>