Skip to content

Instantly share code, notes, and snippets.

@huttneab
Created May 8, 2013 16:51
Show Gist options
  • Save huttneab/5541822 to your computer and use it in GitHub Desktop.
Save huttneab/5541822 to your computer and use it in GitHub Desktop.
RKEntityMapping *mapping = [RKEntityMapping mappingForEntityForName:@"conversation" inManagedObjectStore:managedObjectStore];
mapping.identificationAttributes = @[@"identifier"];
[mapping addAttributeMappingsFromDictionary:@{
@"@metadata.identifier" : @"identifier"
}];
[mapping addPropertyMapping:[RKRelationshipMapping relationshipMappingFromKeyPath:@"members" toKeyPath:@"otherUsers" withMapping:[self profileObjectMapping:managedObjectStore]]];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment