cannyboy
cannyboy

Reputation: 24426

Core Data Entity with several parent relationships

Let's say there is an entity called Product, which is connected to Shop (a shop has several products). However, there is also an entity called SpecialWebOffers, which also has a number of Products (which are not in any Shop).

How do I connect both Shop and SpecialOffers to Product. Is it OK to have two relationships in Product - one to Shop and one to SpecialWebOffers?

Upvotes: 0

Views: 83

Answers (1)

Mark Leonard
Mark Leonard

Reputation: 2096

It's very common for an entity to have multiple relationships. If I am understanding your question correctly then the answer is yes.

Upvotes: 1

Related Questions