for (String toManyRelationshipName : classDescription.toManyRelationshipKeys()) {
ERXKey<Object> key = new ERXKey<Object>(toManyRelationshipName);
if (filter.matches(key, ERXKey.Type.ToManyRelationship)) {
EOClassDescription destinationClassDescription = classDescription.classDescriptionForDestinationKey(key.key());
ERXKeyFilter destinationFilter = filter._filterForKey(key);
NSDictionary<String, Object> destinationSchema = ERXRestSchema.schemaPropertiesForEntityNamed(destinationClassDescription.entityName(), destinationFilter, entities);
if (destinationSchema != null) {
properties.setObjectForKey(destinationSchema, key.key());
}
else {
// MS: Recursive reference to an entity .... wtf do we do.