I try save relation this way
[pfBill pinInBackgroundWithBlock:^(BOOL succeeded, NSError *PF_NULLABLE_S error)
{
[relation addObject:pfBill];
[pfObjectWithRelations pinInBackgroundWithBlock:^(BOOL succeeded, NSError *PF_NULLABLE_S error)
{
}];
}];
But i can't do it.
PFRelation *relation = [[PFUser currentUser] relationForKey:@"Relation"];
PFQuery *query = [[relation query] fromLocalDataStore];
[query findObjectsInBackgroundWithBlock:^(NSArray *objects, NSError *error){
NSLog(@"%@", objects);
}];
it returns nothing, but if i save relation with saveEventually its return some objects from local datastore