title: Fluent Nhibernate - inserts the parent but not the childs
body: <p>im using fluent nhibernate and  im having trouble saving an entiity.</p>
  
  <p>So, I have Books table, Book_Types table and a join table between them - TypeInBook table, since book can have many books, so its a many to many connection.</p>
  
  <p>so in my the book model i have ofcurse a lise of book types:</p>
  
  <pre><code>public virtual IList&lt;BookType&gt; BookTypes {get; set; }
  </code></pre>
  
  <p>here is how i map it :</p>
  
  <pre><code>HasManyToMany(x =&gt; x.BookTypes).Table("TYPES_IN_BOOKS").ParentKeyColumn("BOOK_TYPE_ID").ChildKeyColumn("BOOK_ID").Inverse();
  </code></pre>
  
  <p>Now, if I'm removing the inverse it tries (for my understanding) to add the children first, but it cant because the parent has not been added and therefore cant make the constraint (to something that doesnt exists).
  And when I'm adding the inverse, it inserts the parent but not the children.</p>