使用 doctrine:generate:form 覆盖已生成的表单?
Overwrite an already generated form using doctrine:generate:form?
当运行这个:
php app/console doctrine:generate:form ProjectFrontendBundle:Car
如果表单类型 class 已经存在,我将在下方收到此消息。
Unable to generate the CarType form class as it already exists under
the ~/workspace/certifi/src/Project/FrontendBundle/Form/CarType.php
file
那么,是否可以覆盖已经生成的表单?
快速浏览 app/console doctrine:generate:form -h
不幸的是没有:
Options:
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
-s, --shell Launch the shell.
--process-isolation Launch commands from shell as a separate process.
-e, --env=ENV The Environment name. [default: "dev"]
--no-debug Switches off debug mode.
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
我猜你只是删除了现有的类型 class(或者 mv
如果你感觉谨慎并且不使用 vcs,它)。
当运行这个:
php app/console doctrine:generate:form ProjectFrontendBundle:Car
如果表单类型 class 已经存在,我将在下方收到此消息。
Unable to generate the CarType form class as it already exists under the ~/workspace/certifi/src/Project/FrontendBundle/Form/CarType.php file
那么,是否可以覆盖已经生成的表单?
快速浏览 app/console doctrine:generate:form -h
不幸的是没有:
Options:
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
-s, --shell Launch the shell.
--process-isolation Launch commands from shell as a separate process.
-e, --env=ENV The Environment name. [default: "dev"]
--no-debug Switches off debug mode.
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
我猜你只是删除了现有的类型 class(或者 mv
如果你感觉谨慎并且不使用 vcs,它)。