symfony 数据库生成实体类

symfony 数据库生成实体类

php bin/console doctrine:mapping:import --force ScTradeInStaAdminBundle annotation

ScTradeInStaAdminBundle :bundle名
annotation:实体类格式 xml,yml, annotation

实体类生成、更新 getter、setter

php bin/console make:entity --regenerate

回车后输入要更新实体类的位置,该目录下所有实体类将被更新

Enter a class or namespace to regenerate [App\Entity]:
 > App\ScTradeInSta\AdminBundle\Entity

猜你喜欢

转载自blog.csdn.net/qq_38906555/article/details/82461116
今日推荐