天天看點

swoft根據表建立實體

php bin/swoft entity:gen table= table1,table2,table3,...

  

php bin/swoft entity:gen -y  生成所有

表名 tb_content 

Generate entity /phpwww/wang/swoft/app/Model/Entity/Content.php OK!

[root@localhost swoft]# php bin/swoft entity:create -d swoft --table tb_content --table_prefix tb_ --remove_prefix tb_