Skip to content

Commit

Permalink
Prevent stripping Id field to fix update()
Browse files Browse the repository at this point in the history
  • Loading branch information
simonharris committed Nov 6, 2014
1 parent 13b6aff commit fdb14c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Phpforce/SoapClient/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ protected function createSObject($object, $objectType)

foreach (get_object_vars($object) as $field => $value) {
$type = $this->soapClient->getSoapElementType($objectType, $field);
if (!$type) {
if ($field != 'Id' && !$type) {
continue;
}

Expand Down

0 comments on commit fdb14c2

Please sign in to comment.