[html-formfu] Re: RFC: automatic constraints from DBIx::Class column_info

Carl Franks fireartist at gmail.com
Thu May 17 12:27:33 GMT 2007


On 17/05/07, Carl Franks <fireartist at gmail.com> wrote:
> At the moment, it adds constraints to fields which have the same name
> as an existing column.
> I plan on adding support for a 2nd argument, which would be a hashref
> mapping fields to columns (also in other related resultsets).

I've added basic support for fields in other tables, the syntax is...

    $form->constraints_from_dbic(
        [ 'MyApp::Schema', 'Person' ],
        {
            dongle => [ 'MyApp::Schema', 'Dongle' ],
        }
    );

Carl



More information about the HTML-FormFu mailing list