From 4c2665b9f9d1b8bd4b6d3d354f88b971f5b8edc9 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 18 Jan 2017 13:49:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=80=E5=AF=B9=E4=B8=80=E9=A2=84=E8=BD=BD?= =?UTF-8?q?=E5=85=A5=E6=9F=A5=E8=AF=A2=E9=BB=98=E8=AE=A4=E6=94=B9=E4=B8=BA?= =?UTF-8?q?IN=E6=9F=A5=E8=AF=A2=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/model/relation/OneToOne.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/model/relation/OneToOne.php b/library/think/model/relation/OneToOne.php index 63903a47..da989798 100644 --- a/library/think/model/relation/OneToOne.php +++ b/library/think/model/relation/OneToOne.php @@ -20,7 +20,7 @@ use think\model\Relation; abstract class OneToOne extends Relation { // 预载入方式 0 -JOIN 1 -IN - protected $eagerlyType = 0; + protected $eagerlyType = 1; // 当前关联的JOIN类型 protected $joinType; // 要绑定的属性