一对一预载入查询默认改为IN查询方式

This commit is contained in:
thinkphp
2017-01-18 13:49:50 +08:00
parent be6d528f68
commit 4c2665b9f9

View File

@@ -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;
// 要绑定的属性