title: Sitecore GlassMapper try to get items having no version using query attribute
body: <p>I am using GlassMapper V3 and Sitecore 7.2. with MVC.</p>
  
  <p>Sitecore item data is mapped automatically through the GlappMapper pipeline and the model is not very complex.
  The model has been extended by a partial class to also have the child items mapped automatically:</p>
  
  <pre><code>[SitecoreQuery("./*[@@templatename='Slider Element']", IsRelative = true)]
  public virtual IEnumerable&lt;Slider_Element&gt; SliderElements { get;set; }
  </code></pre>
  
  <p>That works fine so far. But:</p>
  
  <p>If one or more child items do not have a version in the current context language I would like to receive anyway. This works automatically for PageEditMode but not for the normal mode. But any kind of language fallback is not useful because this functinality should only be available for specific properties. What I would need is something like this:</p>
  
  <pre><code>[SitecoreQuery("./*[@@templatename='Slider Element']", IsRelative = true, GetItemsHavingNoVersions = true)]
  public virtual IEnumerable&lt;Slider_Element&gt; SliderElements { get;set; }
  </code></pre>
  
  <p>As I know, GlassMapper is customizable at serveral points but did not find anything so far where I can add such functionality.</p>
  
  <p>I also spent several hours searching the web and discovering the GlassMapper sourcecode.</p>
  
  <p>There is a method in the SitecoreService class that seems to do parts of the logic but I am not 100% sure:</p>
  
  <pre><code>public IEnumerable&lt;T&gt; Query&lt;T&gt;(string query, bool isLazy = false, bool inferType = false) where T : class
      {
          return CreateTypes( typeof(T), () =&gt; { return Database.SelectItems(query); }, isLazy, inferType) as IEnumerable&lt;T&gt;;
      }
  </code></pre>
  
  <p>Thank you very much in advance for your help!</p>
  
  <p>best regards,
  Thomas</p>