EOQualifier.filterArrayWithQualifier weirdness
EOQualifier.filterArrayWithQualifier weirdness
- Subject: EOQualifier.filterArrayWithQualifier weirdness
- From: Lachlan Deck <email@hidden>
- Date: Thu, 1 Feb 2007 17:44:50 +1100
Hi all,
I've got a weird bug I'm trying to figure out and I'm currently a
little stumped. (Grab your coffee Chuck :-)
EntiyA <-->> Entity B <<--> Entity C
The story goes a little like this:
EOEditingContext ec; // assume exists
EntityA someA; // assume exists within ec
EntityA someC; // assume exists within ec
NSMutableArray bObjects;
EOQualifier qualifier;
bObjects = someA.entityB().mutableClone();
NSLog.out.appendln( "bObjects count:" + bObjects.count() );
// bObjects count:7
// so far so good.
// Various logging shows that a number of these objects have a
relationship to 'someC' (and satisfy the various other bits of the
qualifier) yet...
qualifier = new EOAndQualifier( new NSArray( new Object[] {
...,
new EOKeyValueQualifier( EntityB.EntityCKey,
EOQualifier.QualifierOperatorEqual, someC )
} ) );
EOQualifier.filterArrayWithQualifier( bObjects, qualifier );
NSLog.out.appendln( "bObjects count:" + bObjects.count() );
// bObjects count:0
Now how can that be possible? If I comment out the someC requirement
in the qualifier I get results. If I grab a schemaBasedQualifier and
print it out it reveals nothing weird.
Any ideas?
Thanks.
--
Lachlan Deck
_______________________________________________
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