From: Matt S Trout Date: Tue, 20 Dec 2005 01:59:46 +0000 (+0000) Subject: Merge 'trunk' into 'DBIx-Class-resultset' X-Git-Tag: v0.05005~119^2~22 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fa58d4bbe57c3324316e08b5c8e5c6be6899c75e;p=dbsrgits%2FDBIx-Class.git Merge 'trunk' into 'DBIx-Class-resultset' r4570@obrien (orig r392): castaway | 2005-12-14 14:22:23 +0000 Patches from Andreas Hartmeier applied to PK::Auto r4601@obrien (orig r396): marcus | 2005-12-15 15:59:43 +0000 make more sane error message for missing table. r4632@obrien (orig r397): bluefeet | 2005-12-15 17:07:45 +0000 Adding first version of DBIx::Class::Validation. r4633@obrien (orig r398): ningu | 2005-12-15 22:59:01 +0000 - PK::Auto doc patch from dwc r4641@obrien (orig r400): dwc | 2005-12-18 17:59:04 +0000 Update examples to be more explicit about load_components order r4642@obrien (orig r401): bricas | 2005-12-19 20:19:14 +0000 added cookbook example: setting default values --- fa58d4bbe57c3324316e08b5c8e5c6be6899c75e diff --cc lib/DBIx/Class/Core.pm index 5db8b01,10a776f..88d3c4b --- a/lib/DBIx/Class/Core.pm +++ b/lib/DBIx/Class/Core.pm @@@ -11,10 -11,10 +11,11 @@@ __PACKAGE__->load_components(qw Relationship PK Row - Table + TableInstance + ResultSetInstance Exception - AccessorGroup/); + AccessorGroup + Validation/); 1; diff --cc lib/DBIx/Class/Table.pm index d370ce2,21eaa23..01771ee --- a/lib/DBIx/Class/Table.pm +++ b/lib/DBIx/Class/Table.pm @@@ -4,12 -4,21 +4,14 @@@ use strict use warnings; use DBIx::Class::ResultSet; -use Data::Page; + use Carp qw/croak/; + use base qw/DBIx::Class/; +__PACKAGE__->load_components(qw/AccessorGroup/); -__PACKAGE__->mk_classdata('_columns' => {}); - -__PACKAGE__->mk_classdata('_table_name'); - -__PACKAGE__->mk_classdata('table_alias'); # FIXME: Doesn't actually do anything yet! - -__PACKAGE__->mk_classdata('_resultset_class' => 'DBIx::Class::ResultSet'); - -sub iterator_class { shift->_resultset_class(@_) } +__PACKAGE__->mk_group_accessors('simple' => + qw/_columns name resultset_class result_class storage/); =head1 NAME