Re: Core data: Inverse relationships with subclasses
Re: Core data: Inverse relationships with subclasses
- Subject: Re: Core data: Inverse relationships with subclasses
- From: Jerry Krinock <email@hidden>
- Date: Wed, 29 Sep 2010 10:49:15 -0700
On 2010 Sep 29, at 09:19, jeremy wrote:
> For a solution, rework your schema to subclass FooSub directly from NSManagedObject.
That might work. If it doesn't,
On Sep 29, 2010, at 9:28 AM, Gideon King wrote:
> All entities are concrete … I would have thought it would be OK for the relationship to point to an instance of FooSub shouldn't it? After all, it is a subclass of Foo.
Not sure about that. I'd have made it be a subentity. Core Data knows more about entities than classes.
(But if you do make a subentity, and do a migration someday, remember that you need to work around a bug if you allow operation in Mac OS 10.5.)
_______________________________________________
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