src/Phpforce/SoapClient/Client.php
protected function fixFieldsToNullXml(\SoapVar $object)
    {
        if (isset($object->enc_value->fieldsToNull)
            && is_array($object->enc_value->fieldsToNull)
            && count($object->enc_value->fieldsToNull) > 0)
        {
            $xml = '';
            foreach ($object->enc_value->fieldsToNull as $fieldToNull) {
                $xml .= '<fieldsToNull>' . $fieldToNull . '</fieldsToNull>';
            }
            return new \SoapVar(new \SoapVar($xml, XSD_ANYXML), SOAP_ENC_ARRAY);
        }
    }
protected function fixFieldsToNullXml(\SoapVar $object)
    {
        if (isset($object->enc_value->fieldsToNull)
            && is_array($object->enc_value->fieldsToNull)
            && count($object->enc_value->fieldsToNull) > 0)
        {
            $xml = '';
            foreach ($object->enc_value->fieldsToNull as $fieldToNull) {
                $xml .= '<fieldsToNull>' . $fieldToNull . '</fieldsToNull>';
            }
            return new \SoapVar(new \SoapVar($xml, XSD_ANYXML), SOAP_ENC_ARRAY);
        }
    }
protected function fixFieldsToNullXml ( \ SoapVar $ object ) { if ( isset ( $ object -> enc_value -> fieldsToNull ) && is_array ( $ object -> enc_value -> fieldsToNull ) && count ( $ object -> enc_value -> fieldsToNull ) > 0 ) { $ xml = '' ; foreach ( $ object -> enc_value -> fieldsToNull as $ fieldToNull ) { $ xml .= '<fieldsToNull>' . $ fieldToNull . '</fieldsToNull>' ; } return new \ SoapVar ( new \ SoapVar ( $ xml , XSD_ANYXML ) , SOAP_ENC_ARRAY ) ; } }
Fix the fieldsToNull property for sObjects

@param \SoapVar $object
@return \SoapVar
Fix the fieldsToNull property for sObjects