Heim  >  Artikel  >  php教程  >  有用的symfony命令行语句

有用的symfony命令行语句

WBOY
WBOYOriginal
2016-06-06 20:12:05935Durchsuche

更新数据库结构 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

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn