修改架构函数为 构造方法

This commit is contained in:
hooklife
2017-01-10 15:48:42 +08:00
parent 214ed4976c
commit 5c4df0ce08
31 changed files with 31 additions and 31 deletions

View File

@@ -23,7 +23,7 @@ class Merge extends Model
protected $mapFields = []; // 需要处理的模型映射字段,避免混淆 array( id => 'user.id' )
/**
* 构函数
* 构函数
* @access public
* @param array|object $data 数据
*/

View File

@@ -17,7 +17,7 @@ class Pivot extends Model
{
/**
* 构函数
* 构函数
* @access public
* @param array|object $data 数据
* @param string $table 中间数据表名

View File

@@ -16,7 +16,7 @@ use think\Model;
class BelongsTo extends OneToOne
{
/**
* 构函数
* 构函数
* @access public
* @param Model $parent 上级模型对象
* @param string $model 模型名

View File

@@ -24,7 +24,7 @@ class BelongsToMany extends Relation
protected $middle;
/**
* 构函数
* 构函数
* @access public
* @param Model $parent 上级模型对象
* @param string $model 模型名

View File

@@ -19,7 +19,7 @@ use think\model\Relation;
class HasMany extends Relation
{
/**
* 构函数
* 构函数
* @access public
* @param Model $parent 上级模型对象
* @param string $model 模型名

View File

@@ -25,7 +25,7 @@ class HasManyThrough extends Relation
protected $through;
/**
* 构函数
* 构函数
* @access public
* @param Model $parent 上级模型对象
* @param string $model 模型名

View File

@@ -16,7 +16,7 @@ use think\Model;
class HasOne extends OneToOne
{
/**
* 构函数
* 构函数
* @access public
* @param Model $parent 上级模型对象
* @param string $model 模型名

View File

@@ -25,7 +25,7 @@ class MorphMany extends Relation
protected $type;
/**
* 构函数
* 构函数
* @access public
* @param Model $parent 上级模型对象
* @param string $model 模型名

View File

@@ -22,7 +22,7 @@ class MorphTo extends Relation
protected $morphType;
/**
* 构函数
* 构函数
* @access public
* @param Model $parent 上级模型对象
* @param string $morphType 多态字段名