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.
DBIx::Class::WebForm, DBIx::Class::FromSledge, FormValidator::Simple, Catalyst::Plugin::FormValidator::Simple
To install DBIx::Class::FromValidators, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBIx::Class::FromValidators
CPAN shell
perl -MCPAN -e shell install DBIx::Class::FromValidators
For more information on module installation, please visit the detailed CPAN module installation guide.