一对一关联类调整

This commit is contained in:
thinkphp
2017-01-16 23:09:26 +08:00
parent d68115c946
commit 8b962ae5c5
2 changed files with 4 additions and 4 deletions

View File

@@ -21,14 +21,12 @@ abstract class Relation
protected $parent;
/** @var Model 当前关联的模型类 */
protected $model;
// 关联模型查询对象
protected $query;
// 关联表外键
protected $foreignKey;
// 关联表主键
protected $localKey;
// 当前关联的JOIN类型
protected $joinType;
// 关联模型查询对象
protected $query;
// 关联查询条件
protected $where;
// 关联查询参数

View File

@@ -21,6 +21,8 @@ abstract class OneToOne extends Relation
{
// 预载入方式
protected $eagerlyType = 0;
// 当前关联的JOIN类型
protected $joinType;
// 要绑定的属性
protected $bindAttr = [];