From c0763644f31c292967f1a3d3321a2d6cfe130d41 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 11 May 2017 14:23:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3Query=E7=B1=BB=E7=9A=84useSof?= =?UTF-8?q?tDelete=E6=96=B9=E6=B3=95=E8=BF=94=E5=9B=9E=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/db/Query.php | 1 + 1 file changed, 1 insertion(+) diff --git a/library/think/db/Query.php b/library/think/db/Query.php index 88fc23a1..d9cc56a5 100644 --- a/library/think/db/Query.php +++ b/library/think/db/Query.php @@ -1134,6 +1134,7 @@ class Query if ($field) { $this->options['soft_delete'] = [$field, $condition ?: ['null', '']]; } + return $this; } /**