title: Map of Sobject in SOQL query
body: <p>the following Salesforce <a href="https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_map_sobject.htm" rel="nofollow noreferrer">article</a> says that:</p>
  
  <p><strong>When working with SOQL queries, maps can be populated from the results returned by the SOQL query. The map key should be declared with an ID or String data type, and the map value should be declared as an sObject data type.</strong></p>
  
  <p>Assume on the Account object I have a field of type text that is <strong>unique</strong> called <strong>uniquetext__c</strong>, how can this be achieved:</p>
  
  <pre><code>Map&lt;string, Account&gt; map_acc = new Map&lt;string, Account&gt;([select uniquetext__c, name, customField1, customField 2 from Account limit 10]);
  </code></pre>
  
  <p>My expectation is to have a map between <strong>uniquetext__c</strong> and the <strong>Account sObject</strong>, rather than the <strong>ID</strong> and the  <strong>Account sObject</strong></p>