Skip to content

Instantly share code, notes, and snippets.

@mikekatz
Created September 14, 2012 14:14
Show Gist options
  • Save mikekatz/3722148 to your computer and use it in GitHub Desktop.
Save mikekatz/3722148 to your computer and use it in GitHub Desktop.
Kinvey Supply Mapping for relationship
//books.h
@interface Book : NSObject <KCSPersistable>
@property (nonatomic) Author* author;
@property (nonatomic) NSString* title;
@end
//books.m
@implementation Book
+(NSDictionary *)kinveyPropertyToCollectionMapping {
return @{@"author" : @"authors"};
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment