don't croak if no components when filtering column accessors
Rafael Kitover [Tue, 13 Apr 2010 06:52:36 +0000 (02:52 -0400)]
lib/DBIx/Class/Schema/Loader/Base.pm

index f69f0ca..c9dd108 100644 (file)
@@ -1401,7 +1401,7 @@ sub _resolve_col_accessor_collisions {
     my ($self, $col_info) = @_;
 
     my $base       = $self->result_base_class || 'DBIx::Class::Core';
-    my @components = map "DBIx::Class::$_", @{ $self->components };
+    my @components = map "DBIx::Class::$_", @{ $self->components || [] };
 
     my @methods;