title: MVC3 editor template for IEnumerable doesn't generate 'for' attribute in @Html.LabelFor
body: <p>I have custom EditorTemplate for my <code>ViewModel</code> class (it generates a checkbox list).</p>
  
  <p>In view my model is <code>IEnumerable&lt;ViewModel&gt;</code>, but when I call <code>@Html.EditorForModel()</code> in generated HTML <code>for</code> attribute of <code>label</code> tag is empty.</p>
  
  <p>Everything works fine when I want to render only one checkbox.</p>
  
  <pre><code>public class StateViewModel
  {
      public int Id { get; set; }
      public string Name { get; set; }
      public bool Checked { get; set; }
  }
  </code></pre>
  
  <p>EditorTemplate:</p>
  
  <pre><code>@model Mcs.Sibs.UI.Web.Models.StateViewModel
  
  @Html.HiddenFor(x =&gt; x.Id)
  &lt;div&gt;
      @Html.CheckBoxFor(x =&gt; x.Checked)
      @Html.LabelFor(x =&gt; x.Checked, Model.Name)
  &lt;/div&gt;
  </code></pre>
  
  <p>My View:</p>
  
  <pre><code>@model IEnumerable&lt;Mcs.Sibs.UI.Web.Models.StateViewModel&gt;
  @using (Html.BeginForm()
  {    
      @Html.EditorForModel()
  }
  </code></pre>
  
  <p>Generated HTML looks like this (for one checkbox):</p>
  
  <pre><code>&lt;input type="hidden" value="1" name="[0].Id" data-val-required="The Id field is    required." data-val-number="The field Id must be a number." data-val="true"&gt;
  &lt;div&gt;
  &lt;input type="checkbox" value="true" name="[0].Checked" data-val-required="The Checked   field is required." data-val="true"&gt;
  &lt;input type="hidden" value="false" name="[0].Checked"&gt;
  &lt;label for=""&gt;Checkbox label&lt;/label&gt;
  </code></pre>
  
  <p>You can see that 'for' attribute is empty.
  Am I doing something wrong or this is some kind of bug in MVC3 default <code>EditorTemplate</code> for <code>IEnumerable&lt;T&gt;</code>?</p>