Home  >  Article  >  php教程  >  有用的symfony命令行语句

有用的symfony命令行语句

WBOY
WBOYOriginal
2016-06-06 20:12:05936browse

更新数据库结构 php app/console doctrine:schema:update force 添加Entity get/set 选择器 php app/console generate:doctrine:entities XXX/XXXX/XXXX/ 把文件拷贝到公共的web目录下 php app/console? assets:install web 生成Entity文件 php app/console

更新数据库结构
php app/console doctrine:schema:update –force

添加Entity get/set 选择器
php app/console generate:doctrine:entities XXX/XXXX/XXXX/

把文件拷贝到公共的web目录下
php app/console? assets:install web

生成Entity文件
php app/console doctrine:generate:entity –entity=”XXX/XXX” –fields=”name:string(255) platformId:integer”

清除缓存
php app/console cache:clear –env dev

phpunit
phpunit -c app/ –filter

查看需要更新的sql
php app/console doctrine:schema:update –dump-sql

执行更新
php app/console doctrine:schema:update –force

重建salesOrder模型
php app/console doctrine:generate:entities XXX/XXX/XXX/XXX

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn