Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

命令生成model文件$table=null

Open
#24 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
php
Domain
cli

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
Snipaste_2023-07-11_00-21-53

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from webman-php/console

All issues in webman-php/console

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.