Skip to content

fetchAllIfNeededInBackground() Exception #984

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

Closed
acegreen opened this issue Jul 20, 2016 · 1 comment
Closed

fetchAllIfNeededInBackground() Exception #984

acegreen opened this issue Jul 20, 2016 · 1 comment

Comments

@acegreen
Copy link

acegreen commented Jul 20, 2016

I have an array of two types of pointers, PFObject & PFObject, when I initially tried fetchAllIfNeededInBackground(), it worked as expected. This worked a few times, but all of sudden is now throwing an exception.

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'All object should be in the same class.' ***

No change in Parse version, just minutes apart and its showing an exception

@acegreen
Copy link
Author

acegreen commented Jul 20, 2016

I removed the assertion in PFObjectBatchController.m on line 200. The fetch works as expected, so there is no reason to limit it

 //TODO: (nlutsenko) Convert to using errors instead of assertions.            PFParameterAssert([className isEqualToString:object.parseClassName],
                              @"All object should be in the same class.");

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

No branches or pull requests

1 participant