my $wo_meth = ($class->can('mutator_name')
? $class->mutator_name($col)
: $col);
+ #warn "$col $ro_meth $wo_meth";
if ($ro_meth eq $wo_meth) {
$class->NEXT::ACTUAL::mk_group_accessors($group => [ $ro_meth => $col ]);
} else {
sub create {
my ($class, $attrs, @rest) = @_;
- die "create needs a hashref" unless ref $attrs eq 'HASH';
+ $class->throw( "create needs a hashref" ) unless ref $attrs eq 'HASH';
$attrs = { %$attrs };
my %att;
foreach my $col (keys %{ $class->_columns }) {