-
-
Notifications
You must be signed in to change notification settings - Fork 596
ParseObject.clone() not copying object id #501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I believe this is the intended behavior: Creates a new model with identical attributes to this one. |
Yes, this is correct. Check here the test case for Parse-SDK-JS/src/__tests__/ParseObject-test.js Lines 2056 to 2072 in 293e2e1
The object id is expected to be |
The documentation could be a bit more clear about it. |
This is a good question, I'm not sure - I believe the docs are generated from inline comments. |
All documentation is inline, you can provide a Pr for it. I need to investigate the documentation génération on the gh-pages branch or docs folder |
I am not sure if this is a bug or the expected behaviour, but I think that the clone method of ParseObjet should return an identical object and thus copy the object id.
http://parseplatform.org/Parse-SDK-JS/api/classes/Parse.Object.html#methods_clone
Other attributes seem to be correctly copied but the object id is missing.
I am using Parse 1.10.1 with Postgres.
The text was updated successfully, but these errors were encountered: