i am trying to sync my project to parse. right now i am saving my data in core data. i have 2 kind of entities: Night and Session. it's look like this: Night have many session and session have one night.

when i want to add session to night i create or fetch night and add new session. this way i can get from my night all the session and the opposite way. in order to uploading it to parse i have added in the "Session" table "Night" column ( of type Pointer ) and in "Night" table i added "Sessions" column ( of type relation ) this is how it's look like:


i already succeeded to sync all the record from parse to Core data EXCEPT the relation and Pointers. my problem is that the only solution for that ( insert this relation into core data ) is to create new night ( i mean create instance ) and create new sessions and add them like this:
-(void)addSession:(Session *)session toNight:(Night *)night {
if (session && night) {
NSMutableSet * sessionSet = [night.sessions mutableCopy];
[sessionSet addObject:session];
night.sessions = sessionSet;
}
}
So my Question is:
- this is the only way? create instance and add them?
- when i add Session to Night or when i add Night to session, why it's not shown in the DB table. i can not see this connection. ( like i see in parse ,relation and pointers)
- when i get the Relation from parse it's look like this:
sessions = { "__type" = Relation; className = Session; };
what i can do with that?
Thanks for reading this long Question and i hope i was clear :)
BTW: i follow this tutorial and they do not have relation and pointers.
Updatde i am using Parse Rest Clint API.