Reputation: 890
I ve got 2 tables link by a 1-to many relationship, how could I retrieve data using NSFetchRequest from both tables using simply one request ? Something like in SQL "select * from Table1 Table2 Where id.table1 =id.table2"? Or perhaps I miss something with coredata ! Can I reach objects simply through relationship ?
Thx for help
Upvotes: 1
Views: 456
Reputation: 4041
pick your objects from table1, and access their relationship property, that will fetch the related objects from table2.
If you want to learn more about Core Data, Marcus Zarra has done a book and also a course on iDeveloperTv. book is cheaper, both are fantastic.
Upvotes: 1