DBIx-Class-Validation-Structure
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/DBIx/Class/Validation/Structure.pm view on Meta::CPAN
my $result = $self->validate;
# If errors return the result
if ($result->{errors}) {
return $result;
} else {
# Else do the normal insert
$self->next::method(@_);
}
}
sub update {
my $self = shift;
my $columns = shift;
$self->set_inflated_columns($columns) if $columns;
my $result = $self->validate;
# If errors return the result
if ($result->{errors}) {
return $result;
} else {
view all matches for this distributionview release on metacpan - search on metacpan
( run in 1.111 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )