I think I might have solved the issue.  On line 275 of the 
AuditEventListener class there's the following line of code:

var rd = 
VerCfg.EntCfg[entityName].GetRelationDescription(referencingPropertyName);

Basically, my object model looked something like this:

ClassA (base class)
ClassB (superclass)

When the GetRelationDescription was being called for entityName = ClassB it 
was returning NULL for a child bag collection that existed in ClassA.  So 
ClassB implemented the bag collection but not directly.  Instead the bag 
collection was actually a property of it's subclass ClassA.  So I simply 
added a few lines of code below that line that will check the classes the 
entity inherits from if rd is initially NULL.

I've attached a screenshot highlighting the coding change I made.

I'm not sure if this is a true fix that doesn't break anything but it seems 
to have resolved the issue I was having with no ill effects so far.

On Monday, March 9, 2015 at 12:26:09 PM UTC-4, Devin Michael wrote:
>
> I have just started using NHibernate Envers and I'm running into an issue 
> when saving certain objects when a bag collection associated with the 
> object has been altered.  The problem is visible within the attached image.
>
> I'm using NHibernate v4.0.0.4000 and Envers version 2.0 GA.  I found a bug 
> report related to prior versions of Envers 
> https://nhibernate.jira.com/browse/NHE-136?jql=project%20%3D%20NHE but 
> that bug was reportedly fixed in version 2.0.
>
> If anyone has any insights on what might be causing this issue I'd greatly 
> appreciate it.
>
> Thank you,
> Devin
>

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.

Reply via email to