re: Curious about $SUBST_VARS within a SUBQUERY of a fetch request template
re: Curious about $SUBST_VARS within a SUBQUERY of a fetch request template
- Subject: re: Curious about $SUBST_VARS within a SUBQUERY of a fetch request template
- From: Ben Trumbull <email@hidden>
- Date: Sat, 29 Aug 2009 17:38:03 -0700
I just created a fetch request template in my MOM that looked like:
SUBQUERY(platformInfos, $each, $each.platformName ==
$PLATFORM_NAME).@count == 0
I then looked up the template in the code and attempted to use it in
the
usual manner with:
fetchRequestFromTemplateWithName:substitutionVariables:
should work
Core Data complained that it could not resolve the SQL for
$each.platformName == $PLATFORM_NAME, "because of the RHS".
I would have thought that this variable would be replaced as normal,
even
though it is inside a SUBQUERY. Does anybody know if this is
officially
disallowed, or a bug, or just developer-error somehow?
What your code look like for the substitution variables dictionary ?
- Ben
_______________________________________________
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