function delete()
 {
     // delete invitations
     $this->clearInvitations();
     parent::delete();
 }