Weird issue with Many-To-Manys
Hello all,
I'm coming across a weird issue with Many-To-Manys when using Fluent NHibernate with Automapping.
I have two classes, a User and a Campaign. Both have an IList of the other type to form a Many-To-Many.
On my local machine this works fine with the DataBase creating the table "UsersToCampaigns". I've copied the code and the database up to a UAT environment but none of my Campaigns are found for a User. When checking the database on the UAT site I've now found that it is disregarding the "UsersToCampaigns" table and has created it's own "CampaignsToUsers" table...
This all seems very odd to me; I assumed there would be a system about which table is created and used when using Many-To-Many? And how could it possibly go wrong using the same code and DB?
Thanks in advance,
Tommy
Support Staff 2 Posted by Paul Batum on 25 Jul, 2010 08:56 AM
This used to be a recurring issue but I thought it was resolved when some
sorting code was added for when we load types from an assembly. Are you
using the latest version of FNH?