[Bast-commits] r7994 -
branches/DBIx-Class-Schema-Loader/current/lib/DBIx/Class/Schema/Loader
caelum at dev.catalyst.perl.org
caelum at dev.catalyst.perl.org
Mon Nov 30 14:06:50 GMT 2009
Author: caelum
Date: 2009-11-30 14:06:50 +0000 (Mon, 30 Nov 2009)
New Revision: 7994
Modified:
branches/DBIx-Class-Schema-Loader/current/lib/DBIx/Class/Schema/Loader/Base.pm
Log:
base results on Core, only load components if there are extra components
Modified: branches/DBIx-Class-Schema-Loader/current/lib/DBIx/Class/Schema/Loader/Base.pm
===================================================================
--- branches/DBIx-Class-Schema-Loader/current/lib/DBIx/Class/Schema/Loader/Base.pm 2009-11-30 13:51:11 UTC (rev 7993)
+++ branches/DBIx-Class-Schema-Loader/current/lib/DBIx/Class/Schema/Loader/Base.pm 2009-11-30 14:06:50 UTC (rev 7994)
@@ -130,7 +130,8 @@
=head2 result_base_class
-Base class for your table classes (aka result classes). Defaults to 'DBIx::Class'.
+Base class for your table classes (aka result classes). Defaults to
+'DBIx::Class::Core'.
=head2 additional_base_classes
@@ -525,7 +526,7 @@
$self->_write_classfile($schema_class, $schema_text);
- my $result_base_class = $self->result_base_class || 'DBIx::Class';
+ my $result_base_class = $self->result_base_class || 'DBIx::Class::Core';
foreach my $src_class (@classes) {
my $src_text =
@@ -700,7 +701,9 @@
$self->_use ($table_class, @{$self->additional_classes});
$self->_inject($table_class, @{$self->left_base_classes});
- $self->_dbic_stmt($table_class, 'load_components', @{$self->components}, 'Core');
+ if (my @components = @{ $self->components }) {
+ $self->_dbic_stmt($table_class, 'load_components', @components);
+ }
$self->_dbic_stmt($table_class, 'load_resultset_components', @{$self->resultset_components})
if @{$self->resultset_components};
More information about the Bast-commits
mailing list