Re: Core Data fetch exception: keypath <transient attribute> not found in entity
Re: Core Data fetch exception: keypath <transient attribute> not found in entity
- Subject: Re: Core Data fetch exception: keypath <transient attribute> not found in entity
- From: Quincey Morris <email@hidden>
- Date: Sun, 12 Jul 2009 12:28:12 -0700
On Jul 12, 2009, at 12:05, Fritz Anderson wrote:
I have an entity, "Sale," that has a transient attribute
"latestDate." It is marked optional/transient/indexed in the MOM;
I've also tried it without setting optional. I set latestDate in
awakeFromFetch and awakeFromInsert. I use [NSDate
dateWithTimeIntervalSinceReferenceDate: 0] as a flag value.
...
The execute... method raises
'NSInvalidArgumentException', reason: 'keypath latestDate not found
in entity <NSSQLEntity Sale id=2>'
The documentation:
http://developer.apple.com/iphone/library/documentation/Cocoa/Conceptual/CoreData/Articles/cdFetching.html
says: "Note that you cannot fetch using a predicate based on transient
properties".
I think that pretty much covers it. :)
_______________________________________________
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