From 43aad4fe1172e54a602753778e9ed4ecc5ec5671 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 26 Dec 2017 16:32:07 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4BelongsTo=E7=9A=84hasWhere?= =?UTF-8?q?=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/model/relation/BelongsTo.php | 1 - 1 file changed, 1 deletion(-) diff --git a/library/think/model/relation/BelongsTo.php b/library/think/model/relation/BelongsTo.php index b5753ea3..5a7ebda0 100644 --- a/library/think/model/relation/BelongsTo.php +++ b/library/think/model/relation/BelongsTo.php @@ -101,7 +101,6 @@ class BelongsTo extends OneToOne return $this->parent->db()->alias($model) ->field($fields) - ->group($model . '.' . $this->foreignKey) ->join([$table => $relation], $model . '.' . $this->foreignKey . '=' . $relation . '.' . $this->localKey, $this->joinType) ->where($where); }