Streamline ::ResultSource::* inheritance, similar to d009cb7d
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / ResultSource / Table.pm
CommitLineData
151fc9ad 1package DBIx::Class::ResultSource::Table;
ea2e61bf 2
3use strict;
4use warnings;
5
7f068248 6use base 'DBIx::Class::ResultSource';
7use mro 'c3';
525035fb 8
75d07914 9=head1 NAME
34d52be2 10
1ea77c14 11DBIx::Class::ResultSource::Table - Table object
34d52be2 12
13=head1 SYNOPSIS
14
15=head1 DESCRIPTION
16
48580715 17Table object that inherits from L<DBIx::Class::ResultSource>.
34d52be2 18
19=head1 METHODS
20
fea3d045 21=head2 from
22
23Returns the FROM entry for the table (i.e. the table name)
24
25=cut
26
b8e0ecca 27sub from {
28 $_[0]->throw_exception('from() is not a setter method') if @_ > 1;
29 $_[0]->name;
30}
fea3d045 31
a2bd3796 32=head1 FURTHER QUESTIONS?
34d52be2 33
a2bd3796 34Check the list of L<additional DBIC resources|DBIx::Class/GETTING HELP/SUPPORT>.
34d52be2 35
a2bd3796 36=head1 COPYRIGHT AND LICENSE
34d52be2 37
a2bd3796 38This module is free software L<copyright|DBIx::Class/COPYRIGHT AND LICENSE>
39by the L<DBIx::Class (DBIC) authors|DBIx::Class/AUTHORS>. You can
40redistribute it and/or modify it under the same terms as the
41L<DBIx::Class library|DBIx::Class/COPYRIGHT AND LICENSE>.
34d52be2 42
43=cut
44
a2bd3796 451;