Add saner warning when non-source classes encountered in schema subdir by load_classes.
[dbsrgits/DBIx-Class-Historic.git] / t / lib / DBICNGTest / Schema / ResultSet.pm
CommitLineData
62fa8aec 1package # hide from PAUSE
2 DBICNGTest::Schema::ResultSet;
3
4 use Moose;
5 extends 'DBIx::Class::ResultSet', 'Moose::Object';
6
7=head1 NAME
8
9DBICNGTest::Schema::ResultSet; A base ResultSet Class
10
11=head1 SYNOPSIS
12
13 package DBICNGTest::Schema::ResultSet::Member;
14
15 use Moose;
16 extends 'DBICNGTest::Schema::ResultSet';
17
18 ## Rest of the class definition.
19
20=head1 DESCRIPTION
21
22All ResultSet classes will inherit from this. This provides some base function
23for all your resultsets and it is also the default resultset if you don't
24bother to declare a custom resultset in the resultset namespace
25
26=head1 PACKAGE METHODS
27
28The following is a list of package methods declared with this class.
29
30=head1 ATTRIBUTES
31
32This class defines the following attributes.
33
34=head1 METHODS
35
36This module declares the following methods
37
38=head2 new
39
40overload new to make sure we get a good meta object and that the attributes all
41get properly setup. This is done so that our instances properly get a L<Moose>
42meta class.
43
44=cut
45
46sub new
47{
48 my $class = shift @_;
49 my $obj = $class->SUPER::new(@_);
50
51 return $class->meta->new_object(
52 __INSTANCE__ => $obj, @_
53 );
54}
55
56
57=head1 AUTHORS
58
59See L<DBIx::Class> for more information regarding authors.
60
61=head1 LICENSE
62
63You may distribute this code under the same terms as Perl itself.
64
65=cut
66
67
681;