I am using Fluent and NHibernate. I have two objects say A & B which has a many-to-many relationship between them. I am using a unidirectional many-to-many mapping when A HasMany B's. There is no reference in B about A (Unidirectional).
This creates a third table (named ABMapping) in the Database which has the two columns relating to primary keys of A & B.
If I delete the object A, the entries from the ABMapping table related to A are deleted. That's cool.
But, now I am not able to delete an object B, as it has a FK constraint. How can I set it up so that on deleting B, all entries related to B in ABMapping are deleted automatically?