Skip to content

Commit

Permalink
Fix for NH-3145
Browse files Browse the repository at this point in the history
  • Loading branch information
hazzik committed May 18, 2012
1 parent 1b63486 commit 6da9af7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/NHibernate/Proxy/NHibernateProxyHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ public static System.Type GuessClass(object entity)
{
return li.PersistentClass;
}
return li.GetImplementation().GetType();
//NH-3145 : implementation could be a IFieldInterceptorAccessor
entity = li.GetImplementation();
}
var fieldInterceptorAccessor = entity as IFieldInterceptorAccessor;
if (fieldInterceptorAccessor != null)
Expand All @@ -63,3 +64,4 @@ public static bool IsProxy(this object entity)
}
}
}

0 comments on commit 6da9af7

Please sign in to comment.