attributes on bridge tables


I have a questions about attributes on bridge tables, is there a way to get them besides doing and SQL query?

and by bridge tables I mean tables that map many to many relationships, since they might have additional attributes besides foreign keys.

Thank you

Declare a model class for it?

I guess this will help you:


Thank you all,

creating a class is the solution that is the easiest, although I was avoiding it since the approach seemed a bit strange.