This is the entity/record model for ProductType. It's just not a content item record.
Is it the IList of ProductField that makes you think otherwise? Are one-to-many relations not allowed in the model?
This model is being mapped to NHibernate and when I query the table via the repository (_repository.Table.Where(p => p.Id == id).FirstOrDefault();),
I'm getting the record I expect and a lazy load of ProductFields is occurring if/when I reference the list.
My problem is that when I try to save the ProductType record via the repository (_repository.Update(record)), NHibernate is trying to save the ProductField records as well which is what I am trying to avoid.
From what I've read about Fluent NHibernate mappings, this can be made to occur by defining ProductType as:
HasMany(x => x.ProductFields).Cascade.All();
I wanted to know if there is a way to override the mapping to not cascade the save or if there are attributes that I can decorate the IList field to achieve the same result or if what I am trying to do is simply not possible in Orchard.