title: delete entities from junction table in many to many relationship
body: <p>I have a many to many relationship with a junction table.</p>
  
  <pre><code>public class Contact
  {
      public int Id { get; set; }
      public string Name { get; set; }
      public virtual ICollection&lt;ContactContactGroup&gt; ContactContactGroups { get; set; }
  }
  
  public class ContactContactGroup
  {
      public int Id { get; set; }
      public int ContactId { get; set; }
      public int ContactGroupId { get; set; }
  
      public virtual Contact Contact { get; set; }
      public virtual ContactGroup ContactGroup { get; set; }
  }
  
  public class ContactGroup
  {
      public int Id { get; set; }
      public string Name { get; set; }
  
      public virtual ICollection&lt;ContactContactGroup&gt; ContactContactGroups { get; set; }
  }
  </code></pre>
  
  <p>If i delete a relation i get the following exception:</p>
  
  <pre><code>Uncaught TypeError: Unable to parse bindings.
  Bindings value: text: Contact().Name
  Message: Cannot read property 'Name' of null
  </code></pre>
  
  <p>this is my delete function:</p>
  
  <pre><code>   that.deleteMe = function (contactContactGroup) {    
  
         // Doesn't work also, duplicates entries after second deletion
         //contactGroup.ContactContactGroups.remove(contactContactGroup);
  
         contactContactGroup.entityAspect.setDeleted();
     };
  </code></pre>
  
  <p>here is the view:</p>
  
  <pre><code>  &lt;div data-bind="foreach: ContactContactGroups"&gt;
        &lt;div data-bind="text: Contact().Name"&gt;&lt;/div&gt;
        &lt;button data-bind="click: deleteMe"&gt;Delete&lt;/button&gt;
    &lt;/div&gt;
  </code></pre>
  
  <p>i've found a workaround with the 'with' binding from knockoutjs:</p>
  
  <pre><code>   that.deleteMe = function (contactContactGroup) {    
         contactGroup.ContactContactGroups.remove(contactContactGroup);
         contactContactGroup.entityAspect.setDeleted();
     };
  
    &lt;div data-bind="foreach: ContactContactGroups"&gt;
        &lt;div data-bind="with: Contact"&gt;
            &lt;div data-bind="text: Name"&gt;&lt;/div&gt;
        &lt;/div&gt;
        &lt;button data-bind="click: deleteMe"&gt;Delete&lt;/button&gt;
    &lt;/div&gt;
  </code></pre>
  
  <p>but this seems a little odd to me.
  Is this a breezejs bug or did i miss something?</p>