title: Salesforce PHP Toolkit: INVALID_TYPE: Must send a concrete entity type
body: <p>I'm trying to create a Task against a Lead using the PHP Toolkit and this is the error I get:</p>
  
  <blockquote>
    <p>INVALID_TYPE: Must send a concrete entity type.#0
    D:\xampp\htdocs\test\sfact\soapclient\SforceBaseClient.php(490):
    SoapClient->__call('create', Array) #1
    D:\xampp\htdocs\test\sfact\soapclient\SforceBaseClient.php(490):
    SoapClient->create(Object(SoapParam)) #2
    D:\xampp\htdocs\test\sfact\soapclient\SforceEnterpriseClient.php(73):
    SforceBaseClient->_create(Object(SoapParam)) #3
    D:\xampp\htdocs\test\sfact\index.php(28):
    SforceEnterpriseClient->create(Array, 'Task') #4 {main}</p>
  </blockquote>
  
  <p>Here's my code:</p>
  
  <pre><code>$task = new stdclass();
  $task-&gt;What = 'Lead';
  $task-&gt;WhatId = 'xxx';
  $task-&gt;OwnerId = 'xxx';
  $task-&gt;Type = "Email";
  $task-&gt;Subject = "Message from Mr. X via Web Contact Form";
  $task-&gt;Description = "I wrote to you";
  $task-&gt;Status = "Completed";
  $response = $SforceConnection-&gt;create( array( $task ), 'Task' );
  </code></pre>
  
  <p>Any ideas where I'm going wrong?</p>
  
  <p>Thanks,<br>
  m^e</p>