How do you setup relationships with DMZ using 3 data tables and a single join table? |
[eluser]WanWizard[/eluser]
If you're looking at defining a many-to-many between all these tables using a single join table, stop looking, you can't. Simply because the name of the join table is automatically determines based on the two models in the relation. And not three. It would be possible if you could define the 6 many-to-many relations involved if you could somehow override the name of the join table. If you want this, please create an issue at http://bitbucket.org/wanwizard/datamapper/issues, so I can have a look at it. I might be able to sqeeze it in for the 1.8.0 release, planned for the end of the year. |
Welcome Guest, Not a member yet? Register Sign In |