Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Phpforce/SoapClient/ClientInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ public function update(array $objects, $objectType);
* @param array $objects Array of objects
* @param string $objectType Object type, e.g., account or contact
*
* @return Result\SaveResult[]
* @return Result\UpsertResult[]
* @link http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_calls_upsert.htm
*/
public function upsert($externalFieldName, array $objects, $objectType);
Expand Down
10 changes: 10 additions & 0 deletions src/Phpforce/SoapClient/Result/UpsertResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,18 @@

/**
* Upsert result
*
* @see http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_calls_upsert_upsertresult.htm
*/
class UpsertResult extends SaveResult
{
/**
* @var boolean
*/
protected $created;

public function isCreated()
{
return $this->created;
}
}
3 changes: 2 additions & 1 deletion src/Phpforce/SoapClient/Soap/SoapClientFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ class SoapClientFactory
'SendEmailResult' => 'Phpforce\SoapClient\Result\SendEmailResult',
'SingleEmailMessage' => 'Phpforce\SoapClient\Request\SingleEmailMessage',
'sObject' => 'Phpforce\SoapClient\Result\SObject',
'UndeleteResult' => 'Phpforce\SoapClient\Result\UndeleteResult'
'UndeleteResult' => 'Phpforce\SoapClient\Result\UndeleteResult',
'UpsertResult' => 'Phpforce\SoapClient\Result\UpsertResult',
);

/**
Expand Down