Rendy
Rendy

Reputation: 5698

Core Data Relationship from One Entity to Multiple Entities

I have a scenario of this data model:

enter image description here

enter image description here

So in User entity, I created:

enter image description here

but how could I add relationship of userID to Plan's?


I read that I need to create 2 children entities of User. Is this the best practice?

Maybe I can create this 2 children entities of User:

But how can I refer the inherited userID of each children in relationship?

Upvotes: 0

Views: 262

Answers (1)

kirander
kirander

Reputation: 2256

Rename relationships in User to activity and plan and connect accordingly.

Upvotes: 1

Related Questions