Product>-<PoductGroups>-<-ProductGroup Absolutely Product_ProductGroup is its own entity that implements SortOrder as well as ICollection.
But surely SortOrder is an attribute of one side? -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Mark Jensen Sent: 17 May 2011 10:02 PM To: Castle Project Users Subject: Many-to-Many width extra columns Hi Im trying to figure out how to model the following relation with Active Records I got 3 tables Product - Id - Name ProductGroup - Id -Name Product_ProductGroup - ProductId - ProductGroupId - SortOrder If it wasn't for the extra field on the relation table, i would just have used HasAndBelongsToMany... But what is the right way to model this now that I have an extra column to take care of?? :) -- You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en.
