Hello Team
I have relation in User table to user object named ‘partner’ when I am adding a user as a partner to currentuser(myself) its working fine but when I am trying to reverse i.e adding currentuser(myself) as a partner to the other user the app is crashing ‘EXC_BAD_ACCESS’ 'below is the code and crash logs (however it is meaning less).
-(void)acceptPartnerRequest:(PartnerRequests *)request response:(void(^)(BackendlessUser *))responseBlock error:(void(^)(Fault *))errorBlock {
id<IDataStore> dataStore = [backendless.persistenceService of:[BackendlessUser class]];
[CURRENT_USER setProperty:@“partner” object:request.senderUser];
[dataStore save:CURRENT_USER response:^(id response) // working fine{
[request.senderUser setProperty:@“partner” object:CURRENT_USER];
[dataStore save:request.senderUser response:^(id response) // crashes here {
id<IDataStore> requestStore = [backendless.persistenceService of:[PartnerRequests class]];
[requestStore remove:request response:^(NSNumber *result) {
responseBlock(CURRENT_USER);
} error:^(Fault *error) {
errorBlock(error);
}];
} error:^(Fault *error) {
errorBlock(error);
}];
} error:^(Fault *error) {
errorBlock(error);
}];
}
Please help