Make sure correct value returned from in-memory evaluation of selector over a toMany relationship

Current behaviour of in-memory evaluation of selector over a toMany relationship is still not correct.

i.e. an entity Person has a toMany relationship to entity PersonName
When we evaluate either of the following qualifiers over a person or a person array:
Person.PERSON_NAMES.dot(PersonName.FIRST_NAME).startsWithInsensitive("Jennie");
or
Person.PERSON_NAMES.dot(PersonName.FIRST_NAME).contains("Jenni").and(Person.PERSON_NAMES.dot(PersonName.ACTIVE_FLAG).eq(1));

The result from invoking method EOKeyValueQualifier.evaluateWithObject(Object obj) was always false due to a bug in WebObjects core.


We could get the misbehaviour from invoking the following methods:
1) ERXArrayUtilities.filteredArrayWithQualifierEvaluation(arrayOfPersonToEvaluate, qualifierAsExample)
2) ERXQ.filtered(arrayOfPersonToEvaluate, qualifierAsExample)
3) ERXKeyValueQualifier.evaluateWithObject(aPersonEO)
there are more...