Re: Using NSFetchedResultsController with many-to-many relationship
Re: Using NSFetchedResultsController with many-to-many relationship
- Subject: Re: Using NSFetchedResultsController with many-to-many relationship
- From: Quincey Morris <email@hidden>
- Date: Sat, 10 Mar 2018 14:03:22 -0800
On Mar 10, 2018, at 13:06 , Steve Christensen <email@hidden> wrote:
>
> Don't complicate your life by managing multiple NSFetchedResultsControllers.
> Just create a single one that returns Club entities.
The other valid approach, I think, is to “join” the two entities. That is,
introduce a third entity, say “Membership” which represents a single Person
belonging to a single Club. Person then becomes one-to-many for Membership, and
Club becomes one-to-many for Membership, and there is no many-to-many
relationship any more.
There is still complication in doing the kind of enumerations needed for a
table view, but life is generally easier without many-to-many relationships.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden