Jose Luis Martinez <jlmartinez@capside.com> <jlmartinez@capside.com>
Matt Phillips <mattp@cpan.org> <mphillips@oanda.com>
Norbert Csongrádi <bert@cpan.org> <bert@cpan.org>
-Roman Filippov <romanf@cpan.org> <moltar@moltar.net>
Peter Rabbitson <ribasushi@cpan.org> <rabbit@viator.rabbit.us>
+Roman Filippov <romanf@cpan.org> <moltar@moltar.net>
+Samuel Kaufman <sam@socialflow.com> <sam@socialflow.com>
Tim Bunce <Tim.Bunce@pobox.com> <Tim.Bunce@ig.co.uk>
Toby Corkindale <tjc@cpan.org> <toby@dryft.net>
Wallace Reis <wreis@cpan.org> <wallace@reis.org.br>
SineSwiper: Brendan Byrd <bbyrd@cpan.org>
+skaufman: Samuel Kaufman <sam@socialflow.com>
+
solomon: Jared Johnson <jaredj@nmgi.com>
spb: Stephen Bennett <stephen@freenode.net>
If you want to make your custom ResultSet classes with L<Moose>, use a template
similar to:
- package MyApp::Schema::ResultSet::User;
+ package MyApp::Schema::ResultSet::User;
- use Moose;
- use MooseX::NonMoose;
- extends 'DBIx::Class::ResultSet';
+ use Moose;
+ use MooseX::NonMoose;
+ extends 'DBIx::Class::ResultSet';
- sub BUILDARGS { $_[2] }
+ sub BUILDARGS { $_[2] }
- ...your code...
+ ...your code...
- __PACKAGE__->meta->make_immutable;
+ __PACKAGE__->meta->make_immutable;
- 1;
+ 1;
The L<MooseX::NonMoose> is necessary so that the L<Moose> constructor does not
clash with the regular ResultSet constructor. Alternatively, you can use:
- __PACKAGE__->meta->make_immutable(inline_constructor => 0);
+ __PACKAGE__->meta->make_immutable(inline_constructor => 0);
The L<BUILDARGS|Moose::Manual::Construction/BUILDARGS> is necessary because the
signature of the ResultSet C<new> is C<< ->new($source, \%args) >>.