Re: Entity inheritance and sorting: Bug or my fault?
Re: Entity inheritance and sorting: Bug or my fault?
- Subject: Re: Entity inheritance and sorting: Bug or my fault?
- From: Guido Neitzer <email@hidden>
- Date: Sun, 9 Jul 2006 17:26:23 +0200
On 09.07.2006, at 16:55 Uhr, Ken Anderson wrote:
SortOrderings on fetch specs for things not in the database will
not work. You should fetch them first, then sort them using
EOSortOrdering.sortedArrayUsingKeyOrderArray. Are you SURE it's
working for Contact? Is there a field in the database called
'name' that maybe your entity doesn't use and it just happens to work?
I got it now. Huah, that's ugly.
When I qualify on my abstract superclass "Contact" EOF includes all
attributes from all subclasses. Therefor it seems to be able to
satisfy my request for ordering by "name", because ONE of the
subclasses has a name attribute.
But, when I qualify on a subentity, which doesn't have this
attribute, it fails because the attribute is not reachable from this
subentity. This part of the whole thing was my fault.
So, I have to correct myself: For me this is a bug in EOF, because it
should fail in BOTH cases because the attribute "name" is not
reachable from ALL entities I want to fetch. It just shouldn't work.
cug
_______________________________________________
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