I have the same problem. When we create many-to-many relationships in Core Data, it creates a relationship table, doesn't it? Is there any way to put information (relation attribute) in this table?
I already thought about these two methods, but none of them seems to be the best. Please correct me if I am wrong ... I am also trying to model my application.
1) He solved the problem, but did not use the many-to-many binding from Core Data.
Order (start, end, orderItems) Item (name, orderItems) OrderItem (quantity, order, item)
I prefer this because it does not duplicate rows.
2) So we are replicating the data, right? Because if you have the same item in multiple orders, you have multiple lines with name information. And the problem increases if the element has more columns, such as a description ... The description will be replicated.
Order (start, end, orderItems) Item (name, quantity, orders)
3) Now I read the guide “Basic data” and thought that it is equal to solution 2 in the database:
Order (start, end, orderedItens) Item (name, description, ...) OrderedItem (quantity, order)
OrderedItem parent = Item
Item ^ | Order <--->> OrderedItem
Model at http://www.freeimagehosting.net/uploads/f6ca00bc2f.png