parse-community / parse-php-sdk

The PHP SDK for Parse Platform
https://parseplatform.org/
Other
812 stars 346 forks source link

SaveAll on new objects does not return objectIds #502

Closed dplewis closed 1 year ago

dplewis commented 1 year ago

New Issue Checklist

Issue Description

When setting liveQuery.classNames in the server config save all doesn't return object Id when saving more than one new objects. I assume that some sort of afterSave trigger is called that strips away the objectId. I've tested this against Parse Server 6. ObjectIds are returned when you saveAll on one object.

Since objectIds aren't returned you can't delete / save etc.

I believe the issue can be found by looking https://github.com/parse-community/parse-server/blob/alpha/src/RestWrite.js#L1607

Steps to reproduce

Actual Outcome

Objects save but objectId is missing

Expected Outcome

Objects save and return Id.

Parse PHP SDK

Server

Database

Logs

parse-github-assistant[bot] commented 1 year ago

Thanks for opening this issue!

dplewis commented 1 year ago

I created a Faliing test for this https://github.com/parse-community/parse-php-sdk/pull/503

I can't seem to replicate this on the JS SDK though.