We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 328639f commit 30ff838Copy full SHA for 30ff838
Src/NHibernate.Envers/Tools/Toolz.cs
@@ -21,9 +21,9 @@ private static object getIdentifier(ISessionImplementor session, object obj)
21
{
22
return obj == null
23
? null
24
- : (obj is INHibernateProxy objAsProxy
+ : obj is INHibernateProxy objAsProxy
25
? objAsProxy.HibernateLazyInitializer.Identifier
26
- : session.GetEntityPersister(null, obj).GetIdentifier(obj));
+ : session.GetEntityPersister(session.BestGuessEntityName(obj), obj).GetIdentifier(obj);
27
}
28
29
public static object GetTargetFromProxy(ISessionImplementor session, INHibernateProxy proxy)
0 commit comments