in reply to many-many relations in object modeling

I would use something like Class::DBI::Loader to keep the data model definition in one place, and there has recently been a hack on the cdbi mailing list to create "unbound" Class::DBI-like mock objects that one can manipulate and only later save into the database (or not at all).

Here is the mail by Peter Speltz, a tentative name is Class::DBI::Plugin::Temp.

  • Comment on Re: many-many relations in object modeling

Replies are listed 'Best First'.
Re^2: many-many relations in object modeling
by other90percent (Sexton) on Jun 03, 2005 at 08:26 UTC
    Hmmm, good call. Mind you, I have my 20-or-so objects already coded up using Class::DBI (each in their own little .pm file, aren't I precious). One of my next steps was going to be autogenerating that sort of code anyway - and Class::DBI::Loader will be a huge help on that front. I'm still stuck with 'class definition code' somewhere - but at least now it can be in my "Pure Class" where it belongs. Thanks!