-
-
17 Aug 2009 15:15:39 UTC
- Distribution: DBIx-Class-Stash
- Module version: 0.07
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (1)
- Testers (21 / 323 / 0)
- Kwalitee
Bus factor: 0- % Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (52.58KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 1 contributors- Atsushi Kobayashi C<< <atsushi __at__ mobilefactory.jp> >>
- Dependencies
- DBIx::Class
- Filter::Util::Call
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
DBIx::Class::Stash - stash for DBIC
SYNOPSIS
package Proj::Schema::User; __PACKAGE__->load_components(qw/Stash .../); sub insert { my $self = shift; my $user = $self->next::method(@_); $user->create_related('profile',{ zip1 => $self->stash->{zip1} }); return $user; } in your script: my $user_rs = $self->model('User') $user_rs->stash->{zip1} = $zip1; $user_rs->create({ name => 'nekokak' }); or $self->model->stash->{zip1} = $zip1; my $user = $self->model('User')->create({ name => 'nekokak' });
DESCRIPTION
stash method for DBIC.
METHOD
stash
data stash.
BUGS AND LIMITATIONS
No bugs have been reported.
AUTHOR
Atsushi Kobayashi
<atsushi __at__ mobilefactory.jp>
LICENCE AND COPYRIGHT
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.
Module Install Instructions
To install DBIx::Class::Stash, copy and paste the appropriate command in to your terminal.
cpanm DBIx::Class::Stash
perl -MCPAN -e shell install DBIx::Class::Stash
For more information on module installation, please visit the detailed CPAN module installation guide.