I'd be more than happy to take the time to do a pull and create a failing 
test.  It's the least I could do given all your effort in creating this 
wonderful library of code.  I'll take a look at the how-to-guide you sent.

Thanks,
Devin

On Wednesday, March 11, 2015 at 5:34:25 AM UTC-4, Roger wrote:
>
> Please report your issue here, https://nhibernate.jira.com/projects/NHE, 
> where you include minimal mapping and configuration to reproduce your 
> problem. 
>
> (
> If you want to be more ambitious, add a pull request with a failing test.
> If you want to be even more ambitious, add a pull request with a test that 
> fails without your fix and also include a fix that makes your new and all 
> other old tests to pass.
>
> If you are uncertain how to contribute with code to an open source 
> project, the how-to-guide for NH Core is quite good - 
> https://github.com/nhibernate/nhibernate-core/blob/master/CONTRIBUTING.md
> Some things differ but the principle is the same for Envers.
> )
>
> /Roger
>
> On Wednesday, March 11, 2015 at 12:25:08 AM UTC+1, Devin Michael wrote:
>>
>> 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