More then one save in transaction with one-to-one relations throw exception.
Description
1. Set GlobalWithModifiedFlag to true 2. Object with one to one reference 3. More then one save object in transaction Expected results: correct. Actual: throw exception.
1. Set GlobalWithModifiedFlag to true
2. Object with one to one reference
3. More then one save object in transaction
Expected results: correct.
Actual: throw exception.
PullRequest: https://github.com/nhibernate/nhibernate-envers/pull/9
Add test: (BidirectionalSaveTest)
Fix in AddWorkUnit (method mergeModifiedFlags).
All tests are green.