Why does Doctrine 2 create ~Entity.php file?

泪湿孤枕 提交于 2019-12-05 16:03:04

From the official documentation in Symfony2 CLI command:

$> php app/console help doctrine:generate:entities

....

By default, the unmodified version of each entity is backed up and saved (e.g. Product.php~). To prevent this task from creating the backup file, pass the --no-backup option:

 php app/console doctrine:generate:entities Blog/Entity --no-backup

So to summarize, you may add --no-backup option to your command.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!