We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7dab82f + 1cdfd11 commit df1d065Copy full SHA for df1d065
src/Phpforce/SoapClient/Soap/SoapClient.php
@@ -40,6 +40,12 @@ public function getSoapTypes()
40
preg_match('/\s* (.*) (.*);/', $line, $matches);
41
$properties[$matches[2]] = $matches[1];
42
}
43
+
44
+ // Since every object extends sObject, need to append sObject elements to all native and custom objects
45
+ if ($typeName !== 'sObject' && array_key_exists('sObject', $this->types)) {
46
+ $properties = array_merge($properties, $this->types['sObject']);
47
+ }
48
49
$this->types[$typeName] = $properties;
50
51
0 commit comments