title: Flunet Nhibernate all-delete-orphan not working like expected
body: <p><strong>I have following domain classes:</strong></p>
  
  <pre><code>public class News: EntityBase
      {
          public virtual DateTime CreationDate { get; set; }
          public virtual IList&lt;DomainNameToNews&gt; DomainNameToNews { get; set; } 
  
          public News()
          {
              DomainNameToNews=new List&lt;DomainNameToNews&gt;();           
          }
      }
  
  public class DomainNameToNews : EntityBase
      {
          public virtual DomainName DomainName { get; set; }
          public virtual News News { get; set; }
      }
  </code></pre>
  
  <p><strong>Mapping:</strong></p>
  
  <pre><code>public class NewsMap : ClassMap&lt;News&gt;
      {
          public NewsMap()
          {
              Id(x =&gt; x.Id).GeneratedBy.Identity();
              Map(x =&gt; x.CreationDate).Not.Nullable();
              HasMany(x =&gt; x.DomainNameToNews).Cascade.AllDeleteOrphan();
          }
      }
   public class DomainNameToNewsMap : ClassMap&lt;DomainNameToNews&gt;
      {
          public DomainNameToNewsMap()
          {
              Id(x =&gt; x.Id).GeneratedBy.Identity();
              References(x =&gt; x.News).UniqueKey("UQ_DOMAIN_NEWS").Cascade.Delete();
              References(x =&gt; x.DomainName).UniqueKey("UQ_DOMAIN_NEWS");
          }
      }
  </code></pre>
  
  <p><strong>Explanation:</strong></p>
  
  <p>News can be used in different domains so DomainNameToNews is relationship between them. One news can be used by multiple domains.</p>
  
  <p><strong>Problem:</strong>
  What I want is to delete and add DomainToNews objects through  News repository.</p>
  
  <p>On update of News Object this object will have a list of DomainNameToNews so When I will update News the row from DomainNameToNews that will not be in this list I want to delete at all from database .Now the row that is not in this List will have Null News ,but I want to delete at all. How I must to map my object to achieve this?
  If I didn't explain myself enough clear  please ask more details. Thnaks!!</p>