| Hi, I am trying to make a flattened to-one relationship (Enqueteur -> Lycée instead of Enqueteur -> Classe -> Lycée) . Using Entity Modeller I navigate down the relation in the outline view then click the flatten button. Below is what I get in Entity Modeller: ![]() My first problem is that Entity Modeller now complains that the relationship has no join... How do I solve this? My second problem is with that filteredArrayWithQualifier does not seem to work well with this relationship. Here is the code I am using EOClassDescription v1cd = cd.classDescriptionForDestinationKey(sv1); if ( cd.toOneRelationshipKeys().contains(sv1)) v1Qual= new EOKeyValueQualifier(sv1, EOQualifier.QualifierOperatorEqual, lycee); NSArray<EOGenericRecord> objectsInRow = EOQualifier.filteredArrayWithQualifier(relevantObjects, v1Qual); Now in objectsInRow, I only get a part of the objects I would expect. Suppose there are student objects that belong to college1 because they belong to schoolclass1 (which belongs to college1). Suppose there are students objects that belong to college1 because they belong to schoolclass2 (which belongs to college1). Then it seems that filteredArrayWithQualifier returns only students for schoolclass1... Again, what I am doing wrong? TIA JPM |
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]

