DBIx::Class::FromValidators - Update or Insert DBIx::Class data from Validators


NAME

DBIx::Class::FromValidators - Update or Insert DBIx::Class data from Validators


SYNOPSIS

    # 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',
        }
    );


DESCRIPTION

DBIx::Class::FromValidators allows you to Update or Insert DBIx::Class objects from FormValidator::Simple or Data::FormValidator.


METHODS

create_from_fv

call DBIC's create method.

update_from_fv

call DBIC's update method.


AUTHOR

woremacx <woremacx at cpan dot org>


LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.


SEE ALSO

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