Re: How to fetch Null objects
Re: How to fetch Null objects
- Subject: Re: How to fetch Null objects
- From: Chuck Hill <email@hidden>
- Date: Tue, 5 Jun 2007 15:24:01 -0700
What do you mean by "null objects"? Objects with a specific
attribute that is null? With a to-one relationship that has no
object in the destination? With a to-many that has no objects in the
relation? Something else?
Chuck
On Jun 5, 2007, at 2:13 PM, Ted Archibald wrote:
Is there a more elegant way of trying to fetch null objects?
Currently I have an object 'Posting' with a fetch spec
'fetchNullPostingForMonth' with the qualifier
'(objectIDPostingsForMonth = nil)'
Then in my code I have:
NSArray results =
EOUtilities.objectsWithFetchSpecificationAndBindings( ec,
"Posting", "fetchNullPostingForMonth", null);
To me this seems crude, but it does work. Is there a better way
though?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net
This email sent to email@hidden
--
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
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