title: SugarCRM - insert new record in relationship table
body: <p>Hi I am testing and trying to insert a record in relationship table but without success. I am trying to enter new row in relationship table using logic hook when I do Save in Contacts module but instead of that I am getting blank  index.php page.
  Where is the problem? 
  thank you </p>
  
  <pre><code> &lt;?php
  
      include_once('modules/Contacts/ContactOpportunityRelationship.php');
      class User_hook {
  
          function insert()
          {
              $instance=new ContactOpportunityRelationship();
              $instance-&gt;$contact_id='96163e07-f55a-eb87-251f-513482e4a1da';
              $instance-&gt;$opportunity_id='c99178c5-fed5-7092-4a79-4e1da40a1eea';
              $instance-&gt;save();
  
          }
      }
      ?&gt;
  </code></pre>