[html-formfu] Compound keys in has_many relationships

Carl Franks fireartist at gmail.com
Thu Feb 14 11:24:44 GMT 2008


On 12/02/2008, Henning Kulander <hennikul at linpro.no> wrote:
> Hi!
>
>  I'm using HTML::FormFu to create a new user interface for a legacy
>  database. This database is using natural keys with more than one column
>  in several of it's tables. This does not work in HTML::FormFu, so I have
>  created a patch that enables me to use HTML::FormFu with these tables.
>
>  The patch is affecting DBIC.pm, and should only change things related to
>  the primary key. I have also created a couple of tests to verify that it
>  works.
>
>  The patch does not try to address problems like what happens if the user
>  changes a part of the primary key, but it fixes everything I need to get
>  things working with has_many relationships.
>
>  Does this look like a patch you could include into your project?

Henning,

Thanks for the patch - it even has tests!
Just letting you know that I'm still looking at it.
I've moved your tests out into new files, so that it's only testing 1
thing per-file.
I'm also adding some more tests.
I'll keep you updated.

Thanks,
Carl



More information about the HTML-FormFu mailing list