replace
with__PACKAGE__->columns(All => qw(user_id role_id));
and your code should work (it does here ;-).__PACKAGE__->columns(Primary => qw(user_id role_id));
an error likely to be overlooked! I spotted it reading the Class::DBI documentation; I don't know what the difference in the generated code is, and frankly: I don't care ;-) It's a cool module!
Edit:tested with perl 5.8.3 and Class::DBI 0.95. without the mentioned change I didn't get your error but wrong results (all three roles as 'typist') instead.
regards,
tomte
Hlade's Law:
If you have a difficult task, give it to a lazy person --
they will find an easier way to do it.
In reply to Re: many to many with Class::DBI
by Tomte
in thread many to many with Class::DBI
by jdtoronto
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |