Skip to content

Commit

Permalink
修正php think optimize:schema指令 模型存在子目录的错误
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Jul 9, 2023
1 parent 10ab895 commit 23101f0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/think/console/command/optimize/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ protected function execute(Input $input, Output $output)
continue;
}
$class = '\\' . $namespace . '\\model\\' . pathinfo($file, PATHINFO_FILENAME);

if (!class_exists($class)) {
continue;
}

$this->buildModelSchema($class);
}
}
Expand Down

0 comments on commit 23101f0

Please sign in to comment.