title: Error when using AutoMapper to map from a POCO to an NHibernate proxy object
body: <p>We recently upgraded AutoMapper and ran into an issue when mapping items a certain way.</p>
  
  <p>When I load an NHibernate domain object, and attempt to map my model to it in the following manner:</p>
  
  <pre><code>var myPoco = new MyPoco();
  var proxy = repository.Load&lt;MyDomainObject&gt;(id);
  Mapper.Map(myPoco, proxy);
  </code></pre>
  
  <p>I get the following error:</p>
  
  <pre><code>Missing type map configuration or unsupported mapping.
  
  MyPoco-&gt; MyDomainObjectProxy
  </code></pre>
  
  <p>However, if I use the following overload of the method, I do <strong>not</strong> get the exception:</p>
  
  <pre><code>var myDomainObj = Mapper.Map&lt;MyPoco, MyDomainObject&gt;(myPoco);
  </code></pre>
  
  <p>When you look into the AutoMapper code, you can see that these methods call different base methods in the code base, which is why they behave differently.</p>
  
  <p>Is this a bug with the newer version of AutoMapper, or is there another way of using the Mapper.Map(source, destination) method with proxies?</p>
  
  <p><strong>Note</strong>: this is using AutoMapper 2.2.0.  I believe this worked fine in 0.3.</p>