改进BelongsTo关联

This commit is contained in:
thinkphp
2017-03-28 11:56:01 +08:00
parent 8d843bec99
commit 62aa6a0f14
4 changed files with 39 additions and 3 deletions

View File

@@ -30,6 +30,8 @@ abstract class OneToOne extends Relation
protected $joinType;
// 要绑定的属性
protected $bindAttr = [];
// 关联方法名
protected $relation;
/**
* 设置join类型