Skip to content

Commit fdb14c2

Browse files
committed
Prevent stripping Id field to fix update()
1 parent 13b6aff commit fdb14c2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Phpforce/SoapClient/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ protected function createSObject($object, $objectType)
665665

666666
foreach (get_object_vars($object) as $field => $value) {
667667
$type = $this->soapClient->getSoapElementType($objectType, $field);
668-
if (!$type) {
668+
if ($field != 'Id' && !$type) {
669669
continue;
670670
}
671671

0 commit comments

Comments
 (0)