Skip to content

Commit

Permalink
新增模型生成时,如目录不存在则自动创建
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurunsoft committed Aug 23, 2018
1 parent 5577734 commit 73b87a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Tool/Tools/Generate/Model/ModelGenerate.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public function generate($namespace, $database, $poolName, $prefix, $include, $e
->getArray();
// model保存路径
$modelPath = Imi::getNamespacePath($namespace);
File::createDir($modelPath);
foreach($list as $item)
{
$table = $item['TABLE_NAME'];
Expand Down

0 comments on commit 73b87a1

Please sign in to comment.