title: Alexa CRM how can i add data to different entities
body: <p>I'm using <a href="https://github.com/AlexaCRM/php-crm-toolkit" rel="nofollow noreferrer">https://github.com/AlexaCRM/php-crm-toolkit</a> to send data from a form to an entity in CRM.</p>
  
  <p>With normal fields it's okay but when I want to add 'new_produit_demande' it's gives error because that field is assigned to another entity ('new_produituic') and ('contact')</p>
  
  <p>Any suggestions?</p>
  
  <p>This is some code and it's not working. </p>
  
  <pre><code>&lt;?php 
   require 'autoload.php' ;
   use AlexaCRM\CRMToolkit\Client as OrganizationService;
   use AlexaCRM\CRMToolkit\Settings;
   $options = [
   'serverUrl' =&gt; 'https://xxxxx',
                'username' =&gt; 'xxxx',
                'password' =&gt; 'xxxx',
                'authMode' =&gt; 'xxx',
  
  ];
  $serviceSettings = new Settings( $options );
  $service = new OrganizationService( $serviceSettings );
  $guid = 'd5bac140-b68b-e911-80cc-005056aa3849';
    $contact = $service-&gt;entity('contact');
  $contact-&gt;firstname='product1';
  $contact-&gt;new_produit_demande = new EntityReference('new_produituic',$guid);
  $contactId = $contact-&gt;create();
  </code></pre>
  
  <p>The error: </p>
  
  <blockquote>
    <p>Fatal error: Class 'EntityReference' not found in C:\xampp\htdocs\ccr\test.php on line 29</p>
  </blockquote>