for (EOModel model : ERXModelGroup.defaultGroup().models()) {
for (EOEntity entity : model.entities()) {
for (EORelationship relationship : entity.relationships()) {
EOEntity destination = relationship.destinationEntity();
if (destination != null && destination.parentEntity() != null) {
relationship.anyInverseRelationship();
}
}
}
}