When using property-ref on one-to-one or many-to-one, filters should not be applied if using "old" behaviour (https://nhibernate.jira.com/browse/NH-1998). This patch fixes this issue.
Also, I added some notes to the reference doc in the filter section about "use-many-to-one".
When getting the latest bits, the test no longer fail. The patch is messed up in some way. Will look into it.
I'm not really sure why the orginal attachment's test didn't fail any longer (or if it did ever on "SVN code base"). Probably the fault was at my side. Sorry for that. Anyhow...
Attached file modifies current test so the test VerifyFiltersOnPropertyRef() fails. To make the test pass, use prior patch for EntityType (row 517).
can you please add another test-fixture without modify the existing ?
Sure. Will be tomorrow though. Late here in Sweden.
Here's the test in seperate fixture and mapping.
The other file (fixFor...) makes the test pass.