Revision history for DBIx::Class\r
\r
+0.03002\r
+ - Minor bugfix to new (Row.pm)\r
+ - Schema doesn't die if it can't load a class (Schema.pm)\r
+\r
0.03001 2005-09-23 14:00:00\r
- Fixes to relationship helpers\r
- IMPORTANT: prefetch/schema combination bug fix\r
use vars qw($VERSION);
use base qw/DBIx::Class::Componentised/;
-$VERSION = '0.03001';
+$VERSION = '0.03002';
1;
}
return $key;
} elsif ($action eq 'join') {
+ return $key unless $key =~ /\./;
my ($type, $field) = split(/\./, $key);
if (my $alias = $attrs->{_aliases}{$type}) {
my $class = $attrs->{_classes}{$alias};
}
return $self->get_column($value);
} elsif ($action eq 'join') {
+ return $key unless $key =~ /\./;
my ($type, $field) = split(/\./, $value);
if (my $alias = $attrs->{_aliases}{$type}) {
my $class = $attrs->{_classes}{$alias};
if ($attrs) {
$new->throw("attrs must be a hashref" ) unless ref($attrs) eq 'HASH';
while (my ($k, $v) = each %{$attrs}) {
- $new->store_column($k => $v);
+ $new->store_column($k => $v) if exists $class->_columns->{$k};
}
}
return $new;
}
foreach my $comp (@comp) {
my $comp_class = "${class}::${comp}";
- eval "use $comp_class";
- die $@ if $@;
+ eval "use $comp_class"; # If it fails, assume the user fixed it
$class->register_class($comp => $comp_class);
}
}
my ($class, $to_map) = @_;
return $map{$to_map};
};
+ *{"${target}::classes"} = sub { return \%map; };
}
$conn_class->class_resolver($target);
}