phpforce / soap-client

A PHP client for the Salesforce SOAP API
MIT License
81 stars 75 forks source link

Fix issue when trying to save multiple Records contain invalid data #13

Open sadok-f opened 10 years ago

sadok-f commented 10 years ago

Hi,

I got a problem with Salesforce Soap-Client, I'm trying to update many records in one foreach loop, when one of this records has invalid or missing data it throw Phpforce\SoapClient\Exception\SaveException. For my case I catch it and I trying to update the second one but I have always the same error because in BulkSaver each array contain records getting empty after calling successfully each CRUD function.

I make this PR to fix this issue and I hope it begin merged soon.

Thanks!