|
@@ -18,7 +18,7 @@ class makeModel extends Command
|
|
|
->setDescription('the makemodel command');
|
|
|
}
|
|
|
static $schema = 'sys_user_pre_release';
|
|
|
- static $prefix = 'sys';
|
|
|
+ static $prefix = 'Sys';
|
|
|
static $epp = 'user';
|
|
|
protected function execute(Input $input, Output $output)
|
|
|
{
|
|
@@ -66,7 +66,7 @@ class makeModel extends Command
|
|
|
|
|
|
private static function snakeToCamel($str, $capitalized = true)
|
|
|
{
|
|
|
- $result = ucwords(str_replace(['_',self::$prefix], ['',""],$str),"_");
|
|
|
+ $result =str_replace(['_',self::$prefix], ['',""],ucwords($str,"_"),);
|
|
|
echo $result."--";
|
|
|
echo str_replace(['_',self::$prefix], ['',''],$str);
|
|
|
if (!$capitalized) {
|