RestKit/RestKit — Issue #419: Indexing an entity on two attributes
Author: jayztemplier
Created: 2011-10-24 09:33:47+00:00
State: open

Hi !

I have a problem : I try to write the mapping of a friendship core data model ... but it doesn't have a primary key. Actually, it is indexed with the user_id and friend_id ...

@interface Friendship : NSManagedObject

@property (nonatomic, retain) NSNumber * user_id;
@property (nonatomic, retain) NSNumber * friend_id;
@property (nonatomic, retain) NSNumber * blocker_id;
@property (nonatomic, retain) NSNumber * pending;
@property (nonatomic, retain) User *user;
@property (nonatomic, retain) User *friend;

Is it possible to do this with restkit ? And how ?
Thank you in advance !

Regards,
Jérémy.