The correct NSPredicate format for one-to-many relationship in Core Data
The correct NSPredicate format for one-to-many relationship in Core Data
- Subject: The correct NSPredicate format for one-to-many relationship in Core Data
- From: Jesse Armand <email@hidden>
- Date: Sun, 26 Jul 2009 05:49:04 +0700
Hello,
I have a managed object model entities A and B with one-to-many relationship.
For this particular task, I want to retrieve all A objects which has a
relation to B with a property matches to "string".
I had tried @"ALL bObjects.bProperty MATCHES 'string'", and it caused
an objc_exception_throw in:
[NSSQLGenerator
generateSQLStatementForFetchRequest:ignoreInheritance:countOnly:]
What seems to be the problem ?
Anybody can advise me on the correct predicate format ?
Jesse Armand
----------------------------------------
(http://jessearmand.com)
_______________________________________________
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