Re: Fetchspec of average related field
Re: Fetchspec of average related field
- Subject: Re: Fetchspec of average related field
- From: Florijan Stamenkovic <email@hidden>
- Date: Tue, 8 May 2007 00:27:58 +0200
Yeah, that's smooth :)
Hey Drew,
You could create a VIEW that has the primary key of your item and
the avarage of the ratings - if your DB supports VIEWs.
Then just have a new EOEntity (ItemAvarageRating) on that view and
create a 1:1 relationship from item to ItemAvarageRating.
Fetch by sorting and limiting.... done.
atze
I love view-entities :)
_______________________________________________
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