mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
改进
This commit is contained in:
@@ -24,11 +24,11 @@ class Pivot extends Model
|
||||
/**
|
||||
* 架构函数
|
||||
* @access public
|
||||
* @param Model $parent 上级模型
|
||||
* @param array|object $data 数据
|
||||
* @param Model $parent 上级模型
|
||||
* @param string $table 中间数据表名
|
||||
*/
|
||||
public function __construct(Model $parent = null, $data = [], $table = '')
|
||||
public function __construct($data = [], Model $parent = null, $table = '')
|
||||
{
|
||||
$this->parent = $parent;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user