Re: And another EOF one-to-many qualifier to use?
Re: And another EOF one-to-many qualifier to use?
- Subject: Re: And another EOF one-to-many qualifier to use?
- From: Gustavo Pizano <email@hidden>
- Date: Thu, 3 Dec 2009 10:16:29 +0100
Sorry so i misunderstood the question.
What I understood was that.
User < >> Keyword and you had a relationship toKeywords from User. ( i think you called it only keywords)
right?
mm so now im confused, this kind of wualifiers I used it often in my app to get what you want, in my case Users that have no assignments.... maybe Im wrong :S..
Im gonna check my apps.
G
On Dec 3, 2009, at 9:58 AM, Amiel Montecillo wrote: Hi G,
That works if keyword was a single attribute to User.
However, in my case "keyword" is many. (e.g. user.keywords() returns NSArray<Keyword>)
Doing that generates an sql :
SELECT t0.id FROM User t0 WHERE t0.id is NULL
which is quite wrong.
And yes I'm using WOnder.
Amiel
On Thu, Dec 3, 2009 at 4:45 PM, Gustavo Pizano <email@hidden> wrote:
MM I think it should be something like... assuming you are using wonder
EOQualifier qual = User.TO_KEYWORD.eq(null);
NSArray<User> array = User.fetchUser(ec,qual,sortOrdering);
correct me if im wrong.
G.
On Dec 3, 2009, at 7:33 AM, Amiel Montecillo wrote:
> Hello,
>
> This may be a simple but it is really beating me up.
>
> I have a one-to-many relationship User to many Keyword
>
> What I need is the qualifier to get only a list of users without a single keyword. I know that I can just do users.keywords().count == 0 but I don't want that.
>
> Can someone please beat some sense into me?
>
> Thanks,
> Amiel
>
> --
> socket error: unable to connect to 127.0.0.1
> _______________________________________________
> 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
-- socket error: unable to connect to 127.0.0.1
|
_______________________________________________
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