ActiveRecord fundamentally incompatible with composite keys?

Posted by stimms on Stack Overflow See other posts from Stack Overflow or by stimms
Published on 2009-11-23T17:45:29Z Indexed on 2010/03/23 12:03 UTC
Read the original article Hit count: 321

Filed under:
|

I have been attempting to use subsonic for a project on which I'm working. All was going quite well until I encountered a link table with a composite primary key. That is a key made up of the primary keys of the two tables it joins. Subsonic failed to recognize both keys which was problematic. I was going to adjust subsonic to support compound keys but I stopped and though "Maybe there is a reason for this". Normally active record relies on a single primary key field for every record, even in link tables. But is this necessary? Should I just give up on active record for this project or continue with my modifications?

© Stack Overflow or respective owner

Related posts about subsonic3

Related posts about activerecord