Hi, John is right, if you have A ->> B, this should work :
EOQualifier qual = new ERXExistsQualifier( ERXQ.isNotNull(B.A_FK_KEY) , A.TO_BS_KEY); ERXFetchSpecification<A> spec = new ERXFetchSpecification<A>(A.ENTITY_NAME, qual, null); (not tested though) hope it helps Alex Le 12 mai 2011 à 00:00, John Huss a écrit : > I think you can do this with ERXExistsQualifier and a Not qualifier. > > John > > On Wed, May 11, 2011 at 4:29 PM, Fred Wells <[email protected]> > wrote: > Hey all, > Maybe I missed something but is there a way to construct a qualifier that > check that a toMany relationship is empty? Simply putting in "toMany =%@, new > NSArray(new Object[] {NSKeyValueCoding.NullValue}doesn't do it because it > tries to check across the join table which results in no objects being found. > > -fw > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list ([email protected]) > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/webobjects-dev/alexis.tual%40gmail.com > > This email sent to [email protected]
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
