| 1 | package Interchange6::Schema::ResultSet; | ||
| 2 | |||
| 3 | =head1 NAME | ||
| 4 | |||
| 5 | Interchange6::Schema::ResultSet - the default resultset class for Interchange6 | ||
| 6 | |||
| 7 | =cut | ||
| 8 | |||
| 9 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | 2 | ▶ | use base 'DBIx::Class::ResultSet'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | |||
| 14 | =head1 DESCRIPTION | ||
| 15 | |||
| 16 | This is the default resultset class from which all custom ResultSet classes | ||
| 17 | should inherit. | ||
| 18 | |||
| 19 | It is defined as the default resultset class in L<Interchange6::Schema>. | ||
| 20 | We use this class to load components that we want to make available to all | ||
| 21 | of our resultsets. Current the following components are loaded: | ||
| 22 | |||
| 23 | =over | ||
| 24 | |||
| 25 | =item * L<DBIx::Class::Helper::ResultSet::CorrelateRelationship> | ||
| 26 | |||
| 27 | =item * L<DBIx::Class::Helper::ResultSet::Me> | ||
| 28 | |||
| 29 | =item * L<DBIx::Class::Helper::ResultSet::Random> | ||
| 30 | |||
| 31 | =item * L<DBIx::Class::Helper::ResultSet::SetOperations> | ||
| 32 | |||
| 33 | =item * L<DBIx::Class::Helper::ResultSet::Shortcut> | ||
| 34 | |||
| 35 | =back | ||
| 36 | |||
| 37 | =cut | ||
| 38 | |||
| 39 | 2 | __PACKAGE__->load_components( | |
| 40 | 'Helper::ResultSet::CorrelateRelationship', | ||
| 41 | 'Helper::ResultSet::Me', | ||
| 42 | 'Helper::ResultSet::Random', | ||
| 43 | 'Helper::ResultSet::SetOperations', | ||
| 44 | 'Helper::ResultSet::Shortcut' | ||
| 45 | ); | ||
| 46 | |||
| 47 | 2 | 1; | |