X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FResultSource%2FTable.pm;h=450be9a564fb951291987833da0f4236f8a6b906;hb=97940e368df996e1fe6111fb14f560594dc4c0b2;hp=41b54329b202cefe72c1a85e469b1fa87ac3f27e;hpb=1e10a11d9a973db300c5d94b914bc270c0fa6fb8;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/ResultSource/Table.pm b/lib/DBIx/Class/ResultSource/Table.pm index 41b5432..450be9a 100644 --- a/lib/DBIx/Class/ResultSource/Table.pm +++ b/lib/DBIx/Class/ResultSource/Table.pm @@ -3,22 +3,17 @@ package DBIx::Class::ResultSource::Table; use strict; use warnings; -use DBIx::Class::ResultSet; +use base 'DBIx::Class::ResultSource'; -use Carp qw/croak/; +=head1 NAME -use base qw/DBIx::Class/; -__PACKAGE__->load_components(qw/ResultSource/); - -=head1 NAME - -DBIx::Class::Table - Table object +DBIx::Class::ResultSource::Table - Table object =head1 SYNOPSIS =head1 DESCRIPTION -Table object that inherits from L +Table object that inherits from L. =head1 METHODS @@ -28,17 +23,22 @@ Returns the FROM entry for the table (i.e. the table name) =cut -sub from { shift->name; } +sub from { + $_[0]->throw_exception('from() is not a setter method') if @_ > 1; + $_[0]->name; +} -1; +=head1 FURTHER QUESTIONS? -=head1 AUTHORS +Check the list of L. -Matt S. Trout +=head1 COPYRIGHT AND LICENSE -=head1 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;