From bf57bdb9e1bee713f758fe58fd15ae2c6fb7dc28 Mon Sep 17 00:00:00 2001 From: Karson Date: Tue, 17 Jun 2025 11:17:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96MorphTo=E4=B8=AD=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E9=BB=98=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/model/relation/MorphTo.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/think/model/relation/MorphTo.php b/library/think/model/relation/MorphTo.php index 7d452651..c0298002 100644 --- a/library/think/model/relation/MorphTo.php +++ b/library/think/model/relation/MorphTo.php @@ -137,10 +137,11 @@ class MorphTo extends Relation /** * 移除关联查询参数 + * @param true $option * @access public * @return $this */ - public function removeOption() + public function removeOption($option = true) { return $this; }