Foreign key relationship mapping with RestKit

You need to add a transient attribute to your User entity which holds the associated teamId. This needs to be added to your userMapping. Then, you need to add a relationship definition to your userMapping: [userMapping addConnectionForRelationship:@”team” connectedBy:@{ @”teamId”: @”teamId” }]; This gives RestKit the information it needs to make the connection and instructs it … Read more