/** Delete all files associated to this model */ public function afterDelete() { UploadUtils::deleteFiles($this->getOwner(), self::$fileDir); }