public function deleteUploads($event) { foreach ($this->getFiles() as $file) { $this->getModule()->detachFile($file->id); } }