DBIx-DBO2
view release on metacpan or search on metacpan
DBO2/Record.pm view on Meta::CPAN
426427428429430431432433434435436437438439440441442443444445446Inheritable Hook. Subclasses should
override
this
with
any functions they wish performed immediately
after
a row is updated.
=back
=cut
# $record->update_record()
sub
update_record {
my
$self
=
shift
;
my
$class
=
ref
(
$self
) or croak(
"Not a class method"
);
my
$table
=
$class
->demand_table();
my
@flags
=
$self
->ok_update;
if
(
grep
{
length
$_
and !
$_
}
@flags
) {
# warn "Cancelling update of $self, flags are " . join(', ', map "'$_'", @flags );
return
undef
;
}
# warn "About to update $self, flags are " . join(', ', map "'$_'", @flags );
$self
->pre_update();
( run in 0.580 second using v1.01-cache-2.11-cpan-49f99fa48dc )