DBIx::Class::FromValidators - Update or Insert DBIx::Class data from Validators |
DBIx::Class::FromValidators - Update or Insert DBIx::Class data from Validators
# in your Schema class
package Test::Schema; use base qw( DBIx::Class::Schema::Loader );
__PACKAGE__->loader_options( components => [ qw( FromValidators ) ], );
# in your Catalyst controller
$c->form; $c->model('DBIC::Member')->create_from_fv($c->form, { # extra stuff name => "woremacx", email => "woremacx at gmail", } );
$c->model('DBIC::Member')->search({ name => "woremacx" })->first->update_from_fv($c->from, { # extra stuff email => 'woremacx plus vagina at gmail', } );
DBIx::Class::FromValidators allows you to Update or Insert DBIx::Class objects from FormValidator::Simple or Data::FormValidator.
call DBIC's create method.
call DBIC's update method.
woremacx <woremacx at cpan dot org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
the DBIx::Class::WebForm manpage, the DBIx::Class::FromSledge manpage, the FormValidator::Simple manpage, the Catalyst::Plugin::FormValidator::Simple manpage
DBIx::Class::FromValidators - Update or Insert DBIx::Class data from Validators |