title: Why does IPersistenceContext.GetEntry return null after IPersistenceContext.UnproxyAndReassociate?
body: <p>I've got a disconnected proxy from an NHibernate session, and I'm attempting to see if it's modified in a second session. In the process, I check if the entity is a proxy, and if it is, perform the following calls:</p>
  
  <pre><code> var proxy = entity as INHibernateProxy;
   var obj = persistenceContext.UnproxyAndReassociate(proxy);
   var oldEntry = persistenceContext.GetEntry(obj);
  </code></pre>
  
  <p>I'd expect at this point that the <code>oldEntry</code> would not be null, since the proxy and underlying entity have been reassociated with the <code>persistenceContext</code>. However, <code>UnproxyAndReassociate</code> doesn't populate the <code>StatefulPersistenceContext.entityEntries</code> map with the entity. </p>
  
  <p>Why not? Isn't reassociation considered the same as a load?</p>