public function softDelete($id) {
        return $this->getRepository()->update($id, [
            $this->getConfig('flagField') => true,
            $this->getConfig('deleteField') => time()
        ], [
            'before' => false,
            'after' => false
        ]);
    }