Moose overrides for purge, purgeRevision, and purgeCache.
This commit is contained in:
parent
7ba89245fa
commit
616d5cc866
36 changed files with 139 additions and 192 deletions
|
|
@ -139,13 +139,13 @@ Extend the base method to cleanup the status and statusLog tables.
|
|||
|
||||
=cut
|
||||
|
||||
sub purge {
|
||||
override purge => sub {
|
||||
my $self = shift;
|
||||
my $session = $self->session;
|
||||
$session->db->write('delete from InOutBoard_status where assetId=?', [$self->getId]);
|
||||
$session->db->write('delete from InOutBoard_statusLog where assetId=?', [$self->getId]);
|
||||
$self->SUPER::purge(@_);
|
||||
}
|
||||
super();
|
||||
};
|
||||
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue