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: Glen Huang <email@hidden>
- Date: Sun, 11 Mar 2018 10:48:34 +0800
Works like a charm. Thanks!
> On 11 Mar 2018, at 6:03 AM, Quincey Morris
> <email@hidden> wrote:
>
> 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