I don't know what the difference in the generated code is, and frankly: I don't care ;-)
You should care. That code makes both user_id and role_id a primary key, which means you now have to specify both when you make a call to retrieve. Further, primary keys have a specific definition under relational database theory, and you can't go making just anything a primary key or Bad Things will happen.
----
: () { :|:& };:
Note: All code is untested, unless otherwise stated
In reply to Re: Re: many to many with Class::DBI
by hardburn
in thread many to many with Class::DBI
by jdtoronto
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |