I have 3 entities :Person, Address, Country. The relationship are the follow:
Person -> Address & Address -> Person(to-one)
Address ->Country & Country -> Address(to-one)
In my tableView, I have all the Person present in the database and when I click on one person, I see the firstName and lastName in my UIView but I can retrieve the address of the person and of course the country also.
How can I retrieve the good address for the person "A" and the good address for the person "B"? I have tried setRelationshipKeyPathsForPrefetching: but I don't know exactly how it works. Maybe with an ID? Or other solution....
Can you please help me to find a solution?
Thx
Person -> Address & Address -> Person(to-one)
Address ->Country & Country -> Address(to-one)
In my tableView, I have all the Person present in the database and when I click on one person, I see the firstName and lastName in my UIView but I can retrieve the address of the person and of course the country also.
How can I retrieve the good address for the person "A" and the good address for the person "B"? I have tried setRelationshipKeyPathsForPrefetching: but I don't know exactly how it works. Maybe with an ID? Or other solution....
Can you please help me to find a solution?
Thx
Last edited: