I am having an entity says "Questions" which have One-to-many relation with another entity "AnswerOptions". I am using NSFetchRequest
to get data from entity table. I can get array of NSManagedObject, but I don't want to get it as NSManagedObject. I want to get it as an array of NSDictionary
.
I have used NSDictionaryResultType
for NSFetchRequest's ResultType. I am getting the data of "Question" entity but not getting it's associated "AnswerOptions".
Please let me know how to get data of a relational entity using NSDictionaryResultType
.
Aucun commentaire:
Enregistrer un commentaire