mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 07:02:47 +08:00
一对一关联类调整
This commit is contained in:
@@ -21,14 +21,12 @@ abstract class Relation
|
|||||||
protected $parent;
|
protected $parent;
|
||||||
/** @var Model 当前关联的模型类 */
|
/** @var Model 当前关联的模型类 */
|
||||||
protected $model;
|
protected $model;
|
||||||
|
// 关联模型查询对象
|
||||||
|
protected $query;
|
||||||
// 关联表外键
|
// 关联表外键
|
||||||
protected $foreignKey;
|
protected $foreignKey;
|
||||||
// 关联表主键
|
// 关联表主键
|
||||||
protected $localKey;
|
protected $localKey;
|
||||||
// 当前关联的JOIN类型
|
|
||||||
protected $joinType;
|
|
||||||
// 关联模型查询对象
|
|
||||||
protected $query;
|
|
||||||
// 关联查询条件
|
// 关联查询条件
|
||||||
protected $where;
|
protected $where;
|
||||||
// 关联查询参数
|
// 关联查询参数
|
||||||
|
|||||||
@@ -21,6 +21,8 @@ abstract class OneToOne extends Relation
|
|||||||
{
|
{
|
||||||
// 预载入方式
|
// 预载入方式
|
||||||
protected $eagerlyType = 0;
|
protected $eagerlyType = 0;
|
||||||
|
// 当前关联的JOIN类型
|
||||||
|
protected $joinType;
|
||||||
// 要绑定的属性
|
// 要绑定的属性
|
||||||
protected $bindAttr = [];
|
protected $bindAttr = [];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user