sub uuid_columns {
my $self = shift;
for (@_) {
- die "column $_ doesn't exist" unless $self->has_column($_);
+ $self->throw_exception("column $_ doesn't exist") unless $self->has_column($_);
}
$self->uuid_auto_columns(\@_);
}
sub insert {
- my ($self) = @_;
+ my $self = shift;
for my $column (@{$self->uuid_auto_columns}) {
$self->store_column( $column, $self->get_uuid )
unless defined $self->get_column( $column );
}
- $self->next::method;
+ $self->next::method(@_);
}
sub get_uuid {