* Trevor Phillips <[email protected]> [090313 03:25]:

Hi Trevor,

> ie; If I transfer all submitted form parameters into a hash called
> %Data, I would then like to simply go:
>   $c->model('DB::OneTable')->create(\%Data);

did you already consider looking at a form builder such as HTML::FormFu
(which nicely integrates into Catalyst)? It does this kind of magic for
you, i.e. also update values behind a relationship (e.g. if a user has
many roles this can all get updated automatically).

See HTML::FormFu::Model and Catalyst::Controller::HTML::FormFu for details.

Christian

-- 
http://www.invicro.com/

_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/[email protected]

Reply via email to