Hello again, I tried to add a 'many to many' relationship between two of my classes. I followed the tutorial and everything works as long as I define foreign_keys for the mapping table:
__PACKAGE__->meta->foreign_keys( therapeut => { class => 'PVonline::Therapeuten', key_columns => { therapeut_id => 'nr' }, }, gruppe => { class => 'PVonline::Gruppen', key_columns => { gruppe_id => 'nr' }, }, ); But then I tried to change this to normal relationships as stated in the tutorial: __PACKAGE__->meta->relationships( therapeut => { type => 'many to one', class => 'PVonline::Therapeuten', column_map => { therapeut_id => 'nr'}, }, gruppe => { type => 'many to one', class => 'PVonline::Gruppen', column_map => { gruppe_id => 'nr'}, }, ); To my understanding the two definitions should be equivalent but with the second I get the error message: Don't know how to auto-join relationship 'gruppe' of type 'many to one' at C:/Perl/site/lib/Rose/DB/Object/MakeMethods/Generic.pm line 3330 Any pointers, what I am doing wrong here? Cheers, Michael ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Rose-db-object mailing list Rose-db-object@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rose-db-object