From 50e834c5b5b0977d9ab1aabc40c52187516f99f6 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 7 Sep 2017 11:24:14 +0800 Subject: [PATCH] =?UTF-8?q?hasMany=E7=9A=84has=E6=96=B9=E6=B3=95=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E4=B8=8D=E6=8C=87=E5=AE=9A=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/model/relation/HasMany.php | 1 - 1 file changed, 1 deletion(-) diff --git a/library/think/model/relation/HasMany.php b/library/think/model/relation/HasMany.php index 6dbf9dd3..4bf4e945 100644 --- a/library/think/model/relation/HasMany.php +++ b/library/think/model/relation/HasMany.php @@ -244,7 +244,6 @@ class HasMany extends Relation return $this->parent->db() ->alias($model) - ->field($model . '.*') ->join($table . ' ' . $relation, $model . '.' . $this->localKey . '=' . $relation . '.' . $this->foreignKey, $joinType) ->group($relation . '.' . $this->foreignKey) ->having('count(' . $id . ')' . $operator . $count);