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: Amiel Montecillo <email@hidden>
- Date: Thu, 3 Dec 2009 16:58:56 +0800
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