Skip to content

Commit 30ff838

Browse files
committed
#37 fixed
1 parent 328639f commit 30ff838

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Src/NHibernate.Envers/Tools/Toolz.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ private static object getIdentifier(ISessionImplementor session, object obj)
2121
{
2222
return obj == null
2323
? null
24-
: (obj is INHibernateProxy objAsProxy
24+
: obj is INHibernateProxy objAsProxy
2525
? objAsProxy.HibernateLazyInitializer.Identifier
26-
: session.GetEntityPersister(null, obj).GetIdentifier(obj));
26+
: session.GetEntityPersister(session.BestGuessEntityName(obj), obj).GetIdentifier(obj);
2727
}
2828

2929
public static object GetTargetFromProxy(ISessionImplementor session, INHibernateProxy proxy)

0 commit comments

Comments
 (0)