problem w/sort by non-class-property PK on RO/cached entities?
problem w/sort by non-class-property PK on RO/cached entities?
- Subject: problem w/sort by non-class-property PK on RO/cached entities?
- From: Patrick Robinson <email@hidden>
- Date: Wed, 15 Dec 2004 15:36:03 -0500
Normally, you can specify non-class-property attributes (e.g. primary
key attributes) in the sort orderings array of a fetch specification.
However, if I have Read-Only/Cache-In-Memory entities:
On the first attempt to fetch the objects for one of these, sorting by
the non-class-property PK, it throws a "valueForKey(): lookup of
unknown key" exception (re: the non-class-propery PK attribute), and
does not issue the SQL to fetch the objects.
After that (if I backtrack and keep going), it proceeds without issue,
generating the SQL (complete with the appropriate ORDER BY clauses),
and I don't see the exception again, even when requesting the objects
for previously unfetched, RO/cached entities.
This smells like a bug to me. Has anyone else run into this?
--
Patrick Robinson
AHNR Info Technology, Virginia Tech
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden