Skip to content

Use normal Eloquent hydratation in batch#113

Open
neodc wants to merge 1 commit intoroblesterjr04:masterfrom
neodc:fix-batch-hydrate
Open

Use normal Eloquent hydratation in batch#113
neodc wants to merge 1 commit intoroblesterjr04:masterfrom
neodc:fix-batch-hydrate

Conversation

@neodc
Copy link

@neodc neodc commented Jun 19, 2024

Hello,

First thank you for this great library that helped us a lot.

We hit an issues when using the batch query method, the resulting models had the original attribute set to an empty array, which cause any save after that to result in this SalesforceException:

[ { "message": "The Id field should not be specified in the sobject data.", "errorCode": "INVALID_FIELD" } ]

I adapted the code to use the normal Eloquent hydration method, so that all the attribute are set as usual after a query.

@neodc
Copy link
Author

neodc commented Dec 9, 2024

Any news on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant