DBIx::Class::FromSledge - Update or Insert DBIx::Class data using from Sledge
package Test::DB; use base 'DBIx::Class::Schema'; __PACKAGE__->load_components(qw/ FromSledge /); package Test::DB::User; use base 'DBIx::Class'; __PACKAGE__->load_components(qw/ FromSledge PK::Auto Core /); package Test::Pages::Root; use base 'Test::Pages'; sub valid_create { shift->valid->check( ... ); } sub dispatch_create { my $self = shift; $self->model->create_from_sledge('User',$self, { service_id => $self->service->id, } ); }
Update or Insert DBIx::Class objects from Sledge::Plugin::Validator.
call DBIC's create method.
call DBIC's update method.
No bugs have been reported.
Atsushi Kobayashi <atsushi __at__ mobilefactory.jp>
<atsushi __at__ mobilefactory.jp>
Copyright (c) 2007, Atsushi Kobayashi <atsushi __at__ mobilefactory.jp>. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
To install DBIx::Class::FromSledge, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBIx::Class::FromSledge
CPAN shell
perl -MCPAN -e shell install DBIx::Class::FromSledge
For more information on module installation, please visit the detailed CPAN module installation guide.