Re: objectsWithFetchSpecification appears to not do a deep fetch
Re: objectsWithFetchSpecification appears to not do a deep fetch
- Subject: Re: objectsWithFetchSpecification appears to not do a deep fetch
- From: Chuck Hill <email@hidden>
- Date: Wed, 31 Mar 2004 19:21:20 -0800
That error is what I would expect to see if a eo was not in an ec (ec
had been garbage collected, object has been deleted out of ec, object
not yet inserted into ec). Any chance that the problem lies in one of
those areas?
Chuck
On Mar 31, 2004, at 6:45 PM, Baiss Eric Magnusson wrote:
I create a complicated fetch spec with qualifier and call:
fetchSpec = new EOFetchSpecification( "Event", null, sortOrderings );
clientSearch = new EOAndQualifier( qualifierAndArray );
fetchSpec.setQualifier( clientSearch );
NSArray objsForMonth = ec.objectsWithFetchSpecification( fetchSpec );
But when I try to reference a one-to-one relationship from one of the
fetched <eventItem's> in the NSArray (I know the foreign keys will
find a match):
Presenter theEventPresenter = eventItem.toPresenter();
I get <java.lang.NullPointerException>:
at
com.webobjects.eocontrol.EOCustomObject.willReadRelationship(EOCustomOb
ject.java:1293)
at
com.webobjects.eocontrol._EOMutableKnownKeyDictionary$Initializer$_Lazy
GenericRecordBinding.valueInObject(_EOMutableKnownKeyDictionary.java:
560)
at
com.webobjects.eocontrol.EOCustomObject.storedValueForKey(EOCustomObjec
t.java:1736)
----
Baiss Eric Magnusson
<http://www.Track-Your-Finances.com>
<http://www.CascadeWebDesign.com>
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.