http://www.perlmonks.org?node_id=860151

dwm042 has asked for the wisdom of the Perl Monks concerning the following question:

In DBIx::Class, if I have a table called Towns, and a table called Residents, where Residents are the residents of one of the towns in Towns, then DBIx::Class will create 2 Classes to represent Towns and Residents. If, however, I want to set up a few tables of the Resident kind (Resident_00, _01, etc), to accommodate a few huge towns with a separate table, is there a way to reduce this kind of setup to a two class model in DBIx::Class?

The Towns table would now contain pointers to the specific Residents table to use. I'm very new to DBIx::Class, so I wouldn't be surprised if I'm asking an obvious question.

David.