X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FResultSource%2FTable.pm;h=e1dcc03caeeab834632241120565d61f0d7a8b42;hb=7f068248010455f821c215bf029517cb99aac3e5;hp=9586d3333707dbd168d243dc339404ff3af86253;hpb=48580715af3072905f2c71dc27e7f70f21a11338;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/ResultSource/Table.pm b/lib/DBIx/Class/ResultSource/Table.pm index 9586d33..e1dcc03 100644 --- a/lib/DBIx/Class/ResultSource/Table.pm +++ b/lib/DBIx/Class/ResultSource/Table.pm @@ -3,10 +3,8 @@ package DBIx::Class::ResultSource::Table; use strict; use warnings; -use DBIx::Class::ResultSet; - -use base qw/DBIx::Class/; -__PACKAGE__->load_components(qw/ResultSource/); +use base 'DBIx::Class::ResultSource'; +use mro 'c3'; =head1 NAME @@ -26,17 +24,22 @@ Returns the FROM entry for the table (i.e. the table name) =cut -sub from { shift->name; } - -1; +sub from { + $_[0]->throw_exception('from() is not a setter method') if @_ > 1; + $_[0]->name; +} -=head1 AUTHORS +=head1 FURTHER QUESTIONS? -Matt S. Trout +Check the list of L. -=head1 LICENSE +=head1 COPYRIGHT AND LICENSE -You may distribute this code under the same terms as Perl itself. +This module is free software L +by the L. You can +redistribute it and/or modify it under the same terms as the +L. =cut +1;