fixed:修改命令行无法生成model field

This commit is contained in:
JaguarJack
2020-12-26 20:56:10 +08:00
parent 614448d07a
commit d4ec2d104f
2 changed files with 15 additions and 3 deletions

View File

@@ -50,7 +50,7 @@ class Model extends Factory
{
$extra = $params['extra'];
$table = $params['table'];
$table = Utils::tableWithPrefix($params['table']);
[$modelName, $namespace] = $this->parseFilename($params['model']);
@@ -92,7 +92,6 @@ class Model extends Factory
(new Arr)->build(Db::getFields($table))
)->docComment('// 数据库字段映射'));
});
})->getContent();
}
}