Re: EOFetchSpecification prefetching and Multiple EOModels
Re: EOFetchSpecification prefetching and Multiple EOModels
- Subject: Re: EOFetchSpecification prefetching and Multiple EOModels
- From: David Avendasora <email@hidden>
- Date: Wed, 11 Mar 2009 12:59:10 -0400
On Mar 11, 2009, at 12:46 PM, David Avendasora wrote:
Hi all,
I've run into something that I haven't been able to find documented
anywhere, but does seem to fit with other Cross-Model relationship
issues (http://lists.apple.com/archives/Webobjects-dev/2008/Dec/msg00058.html
).
If you have a cross-model relationship, you can't prefetch the
relationship when constructing an EOFetchSpecification. It will
simply return null, or an empty NSArray if it is a to-many
relationship. Subsequent calls to the relationship simply return
null or the empty NSArray.
I should clarify. The FS returns an NSArray of EOs as you'd expect,
but each of those EO's prefetched cross-model relationship is null or
an empty NSArray.
Is this the expected behavior? It seems logical, but unexpected to
me (Yes, those two concepts can coexist simultaneously in my brain).
Dave
_______________________________________________
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
_______________________________________________
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