命令生成model文件$table=null
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Start with the implementation of the php webman make:model command and trace how $table and $table_val are used when generating a model. Verify the generated file for a prefixed table such as mm_users; done means $table contains the expected prefixed name rather than null.
Written by the indexing model from the issue text.
Description
php webman make:model 表名 这个命令生成的model文件里面定义表名 $table 变量是 null 。
我不清楚你这里为什么要定义多一个$table_val变量 ,然后做这样的判断。这是一个bug吗?
我想要的结果是有带表前缀的表名,例如:$table=mm_users
- Dominant language
- PHP
- Stars
- 25
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Getting set up
We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from webman-php/console
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
webman-php/console#42 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
webman-php/console#41 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 30/100
webman-php/console#35 · 4 comments ·
-
这个插件会覆盖已经存在文件Open
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
webman-php/console#23 · 3 comments ·
All issues in webman-php/console
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
521xueweihan/HelloGitHub#3790 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
benjaminkott/bootstrap_package#1670 ·
-
sync-en
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 2 days