From a3bc4f4f5f3a87b7d94aa16700f005d5ac67d1d6 Mon Sep 17 00:00:00 2001 From: J Humes Date: Wed, 31 Dec 2014 11:45:31 -0700 Subject: [PATCH 1/3] Update not having ID fix Fix for an update not keeping Id in the object that gets passed to Salesforce. This results in an error. --- src/Phpforce/SoapClient/Soap/SoapClient.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Phpforce/SoapClient/Soap/SoapClient.php b/src/Phpforce/SoapClient/Soap/SoapClient.php index bd90617..a78f124 100755 --- a/src/Phpforce/SoapClient/Soap/SoapClient.php +++ b/src/Phpforce/SoapClient/Soap/SoapClient.php @@ -64,6 +64,7 @@ public function getSoapTypes() public function getSoapElements($complexType) { $types = $this->getSoapTypes(); + $types['Id'] = 'string'; if (isset($types[$complexType])) { return $types[$complexType]; } @@ -84,4 +85,4 @@ public function getSoapElementType($complexType, $element) return $elements[$element]; } } -} \ No newline at end of file +} From 648950c526d0af9702d180766fdd7b83fce4be56 Mon Sep 17 00:00:00 2001 From: J Humes Date: Wed, 31 Dec 2014 11:54:14 -0700 Subject: [PATCH 2/3] Move fix for update fix --- src/Phpforce/SoapClient/Soap/SoapClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Phpforce/SoapClient/Soap/SoapClient.php b/src/Phpforce/SoapClient/Soap/SoapClient.php index a78f124..034199d 100755 --- a/src/Phpforce/SoapClient/Soap/SoapClient.php +++ b/src/Phpforce/SoapClient/Soap/SoapClient.php @@ -64,7 +64,6 @@ public function getSoapTypes() public function getSoapElements($complexType) { $types = $this->getSoapTypes(); - $types['Id'] = 'string'; if (isset($types[$complexType])) { return $types[$complexType]; } @@ -81,6 +80,7 @@ public function getSoapElements($complexType) public function getSoapElementType($complexType, $element) { $elements = $this->getSoapElements($complexType); + $elements['Id'] = 'string'; if ($elements && isset($elements[$element])) { return $elements[$element]; } From d5037a1b8c1e7327a84f9311b96ce180120b507a Mon Sep 17 00:00:00 2001 From: J Humes Date: Tue, 6 Jan 2015 14:46:49 -0700 Subject: [PATCH 3/3] Update composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 1792380..6852045 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "phpforce/soap-client", + "name": "jahumes/soap-client", "type": "library", "description": "A PHP client for the Salesforce SOAP API", "keywords": [ "salesforce", "crm", "soap", "force.com", "web services" ],