[CDBI] Obtain has_a Module Through find_column

Peter Speltz peterspeltz at gmail.com
Mon Nov 7 19:19:10 GMT 2005


On 11/7/05, Jay Hargreaves <jay at rigadon.com> wrote:
> Hi everyone!
>
> I am looking to setup a generic form for creating database entries. I
> need to obtain information on a has_a relationship through the
> find_column method so I can populate a drop-down list with available
> values. My MyModule::Link table module contains the following line:
>
> __PACKAGE__->has_a(link_category_id => 'MyModule::LinkCategory' );
>


Check out Class::DBI::AsForm. It does that automatically for has_a columns.



--
pjs




More information about the ClassDBI mailing list