I am interested in an answer as well.
There are patches floating around that add filters to many-to-one relations, but I found no explanation why they were not added to any release yet.
We do not have historical data but data that depends on the language (and some more attributes), tables look like this one:
Quote:
Id (PK) ¦ Code ¦ Name ¦ Language
1 ¦ 01 ¦ Example ¦ english
2 ¦ 01 ¦ Beispiel ¦ german
Every entity that references above entity references the non unique code, that is why a many-to-one relationship without filter throws an exception.
Is there a possible workaround? The database design is fixed, I have no influence on that.
Thanks,
Thomas