Closed
Description
This code generates the exception "PFObject contains container item that isn't cached."
Something goes wrong after anonymous user signing up.
[PFUser enableAutomaticUser];
[PFUser currentUser][@"installations"] = @[ @"test" ];
PFUser* user = [PFUser user];
user.username = @"[email protected]";
user.password = @"test";
[user signUpInBackgroundWithBlock:^(BOOL succeeded, NSError* error) {
if (succeeded) {
// workaround
// [PFUser currentUser][@"installations"] = [[PFUser currentUser][@"installations"] copy];
if ([PFUser currentUser].isDirty) { // the exception occurs here
NSLog(@"User is dirty");
}
}
}];
I tested it on iOS Parse SDK v1.8.5
Metadata
Metadata
Assignees
Labels
No labels