mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 23:22:48 +08:00
Pivot架构方法添加默认值
This commit is contained in:
@@ -28,7 +28,7 @@ class Pivot extends Model
|
|||||||
* @param array|object $data 数据
|
* @param array|object $data 数据
|
||||||
* @param string $table 中间数据表名
|
* @param string $table 中间数据表名
|
||||||
*/
|
*/
|
||||||
public function __construct(Model $parent, $data = [], $table = '')
|
public function __construct(Model $parent = null, $data = [], $table = '')
|
||||||
{
|
{
|
||||||
$this->parent = $parent;
|
$this->parent = $parent;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user