DMZ 1.7.1 (DataMapper OverZealous Edition) |
[eluser]Unknown[/eluser]
DMZ works really well for everything so far, and it's been very useful. I have a question about the many-to-many relationship for the table setups though. In the examples, http://overzealous.com/dmz/pages/relationtypes.html, there's a skill_workers many-to-many relationship: skills_workers id skill_id worker_id Why does that table have its own ID? There's no point to having duplicate data, so you might as well just set the primary key to the skill_id and worker_id. Browsing through the DataMapper class, it seems to be ok with not having that extraneous id field, am I right in assuming that it's not necessary? |
Welcome Guest, Not a member yet? Register Sign In |