Re: Core Data fetch with to-many relationship
Re: Core Data fetch with to-many relationship
- Subject: Re: Core Data fetch with to-many relationship
- From: "Melissa J. Turner" <email@hidden>
- Date: Tue, 8 Sep 2009 19:08:35 -0700
On Sep 8, 2009, at 18:03, Alex Reynolds wrote:
Relationship fault for (<NSRelationshipDescription: 0x3d1b2b0>),
name Book, isOptional 1, isTransient 0, entity Owner,
renamingIdentifier Book, validation predicates (
), warnings (
), versionHashModifier (null), destination entity Book,
inverseRelationship Owner, minCount 0, maxCount 0 on Owner < 123456
| username >
That's not an error, it's an unfired to-many relationship fault. If
you call a method on it (say [testFetchResults valueForKey:@"name"])
it will fire and look more like what you're expecting.
BTW, it's generally a bad idea to use uppercase key names. The ivar
'Book' should probably be 'books', and 'Owner' should be 'owner' (the
class names are fine the way they are).
+Melissa
_______________________________________________
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