Re: to-many relationship fetching
Re: to-many relationship fetching
- Subject: Re: to-many relationship fetching
- From: "Anurag Khare" <email@hidden>
- Date: Wed, 30 Apr 2003 10:10:00 -0700
Thanks for your response..
But if the "list" is bound to entityAItem.entityBs then "Item" is bound to
what as I wish to display Entity B's attributes so "Item" should be bound to
Entity B's object, right? once I do that it throws illegal argument
exception: while trying to set the field "Entity A object" on an object of
type Main we expected a Entity A Object but received Entity B Object with
values of.....
Thanks...
From: Art Isbell <email@hidden>
To: email@hidden
Subject: Re: to-many relationship fetching
Date: Tue, 29 Apr 2003 13:58:01 -1000
On Tuesday, April 29, 2003, at 12:39 PM, Anurag Khare wrote:
So one thing is sure that relationship is working and there is data
relating to key....I do not know why prefetch option is not working..
Are you certain that the relationship isn't being prefetched and that the
problem isn't due to an improperly-configured UI?
My next problem is how to use this NSArray which I am getting through
relationship to display data through WORepetition as it is throwing class
cast exception..
If EntityA's WORepetition's "item" key is bound to entityAItem, EntityB's
WORepetition's "list" should be bound to entityAItem.entityBs (assuming
that the to-many relationship is EntityA.entityBs). This shouldn't require
any code and therefore no casting unless there's more going on than I
understand.
Aloha,
Art
_______________________________________________
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.
_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
_______________________________________________
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.