ExcludeRelationData not working for bidirectional (inverse) one-to-many

Description

My model has three classes, one of which has one-to-many relations to the other two. The parent and one child class is set to audit; the other child is not. Using the FluentConfiguration's ExcludeRelationData() to exclude the non-audited collection property still results in an error:

NHibernate.MappingException : An audited relation from NHibernate.Envers.Tests.NetSpecific.UnitTests.CustomLists.AuditParent.NoAuditChildren to a not audited entity NHibernate.Envers.Tests.NetSpecific.UnitTests.CustomLists.NoAuditChild!
at NHibernate.Envers.Configuration.Metadata.AuditMetadataGenerator.GetReferencedIdMappingData(String entityName, String referencedEntityName, PropertyAuditingData propertyAuditingData, Boolean allowNotAuditedTarget) in AuditMetadataGenerator.cs: line 546
at NHibernate.Envers.Configuration.Metadata.CollectionMetadataGenerator.addOneToManyAttached(Boolean fakeOneToManyBidirectional) in CollectionMetadataGenerator.cs: line 116
at NHibernate.Envers.Configuration.Metadata.CollectionMetadataGenerator.AddCollection() in CollectionMetadataGenerator.cs: line 94

Pull request with failing unit test forthcoming.

Environment

None

Assignee

Unassigned

Reporter

Aaron Humphrey

Labels

None

Components

Affects versions

Priority

Trivial
Configure