X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FResultSource.pm;h=bdf01f12e9d5627b5de85e73d05a9b0a8334e8c3;hb=aa1088bf7ed82084a2d4b2ca957650a15a294ab4;hp=e2e2d7491fd791237f8cfe52e286a111453ec7f4;hpb=bcc5a2102b4052d6f642c870b7747af4f6f60461;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/ResultSource.pm b/lib/DBIx/Class/ResultSource.pm index e2e2d74..bdf01f1 100644 --- a/lib/DBIx/Class/ResultSource.pm +++ b/lib/DBIx/Class/ResultSource.pm @@ -10,9 +10,12 @@ use Storable; use base qw/DBIx::Class/; __PACKAGE__->load_components(qw/AccessorGroup/); -__PACKAGE__->mk_group_accessors('simple' => - qw/_ordered_columns _columns _primaries _unique_constraints name resultset_attributes schema from _relationships/); -__PACKAGE__->mk_group_accessors('component_class' => qw/resultset_class result_class/); +__PACKAGE__->mk_group_accessors('simple' => qw/_ordered_columns + _columns _primaries _unique_constraints name resultset_attributes + schema from _relationships/); + +__PACKAGE__->mk_group_accessors('component_class' => qw/resultset_class + result_class/); =head1 NAME @@ -91,7 +94,8 @@ If the column is allowed to contain NULL values, set a true value =item is_auto_increment Set this to a true value if this is a column that is somehow -automatically filled. This is currently not used by DBIx::Class. +automatically filled. This is used to determine which columns to empty +when cloning objects using C. =item is_foreign_key @@ -106,11 +110,9 @@ currently not used by DBIx::Class. =item sequence -If your column is using a sequence to create it's values, set the name -of the sequence here, to allow the values to be retrieved -automatically by the L module. PK::Auto will -attempt to retrieve the sequence name from the database, if this value -is left unset. +Sets the name of the sequence to use to generate values. If not +specified, L will attempt to retrieve the +name of the sequence from the database automatically. =back @@ -197,7 +199,9 @@ Returns all column names in the order they were declared to add_columns sub columns { my $self = shift; - $self->throw_exception("columns() is a read-only accessor, did you mean add_columns()?") if (@_ > 1); + $self->throw_exception( + "columns() is a read-only accessor, did you mean add_columns()?" + ) if (@_ > 1); return @{$self->{_ordered_columns}||[]}; }