Moose overrides for purge, purgeRevision, and purgeCache.

This commit is contained in:
Colin Kuskie 2010-04-07 16:43:16 -07:00
parent 7ba89245fa
commit 616d5cc866
36 changed files with 139 additions and 192 deletions

View file

@ -696,15 +696,15 @@ the subscriptionGroup for this thread.
=cut
sub purge {
override purge => sub {
my $self = shift;
$self->session->db->write("delete from Thread_read where threadId=?",[$self->getId]);
my $group = WebGUI::Group->new($self->session, $self->subscriptionGroupId);
if ($group) {
$group->delete;
}
$self->SUPER::purge;
}
super();
};
#-------------------------------------------------------------------