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

Carl Franks fireartist at gmail.com
Thu May 17 14:24:50 GMT 2007


On 17/05/07, Zbigniew Lukasiak <zzbbyy at gmail.com> wrote:

> Is there any reason to split the ResoultSet name to schema and table?
> Why not use
>
> constraints_from_dbic: [ 'MyApp::Schema::Table' ]

I've been getting the column info via:
MyApp::Schema->resultset('Table')->result_source->column_info;

I may be missing something, but I can't see any way of getting it
starting with 'MyApp::Schema::Table'.

MyApp::Schema::Table->result_source; gives a fatal error.
MyApp::Schema::Table->new; doesn't instantiate the result source or column info.

Any pointers welcome.
Carl



More information about the HTML-FormFu mailing list