protected function afterDelete() { $this->calcAffiliateTotals($this->affiliate_id); parent::afterDelete(); }