Hi all,
I've started using Restkit - really impressed so far though have hit a bit of a stumbling block.. If I want to have an entity that references another entity via a foreign key like this:
message = {
51192bac2c3e998937000002 = {
"_id" = 51192bac2c3e998937000003;
"expiry_ts" = 1360607676;
"message" = "123123123";
"rx_uid" = 51192a962c3e998f37000002;
"tx_uid" = 511383a62c3e999b1c000001;
};
};
users = {
511383a62c3e999b1c000001 = {
};
51192a962c3e998f37000002 = {
};
};
--------------------------
Is this something that is possible when not using Coredata to have managed objects? I've looked at using normal mapping with a property mapping of the tx_uid => the users primary key however haven't managed to get it to work..
I don't want to post more code here as it may confuse the situation.. I'm after proper relationship mapping to the two entities Message and User with message having the nested users inside... If someone could advise if its possible / a rough idea of how it would be achieved that would be great.
Thanks in advance