Home > php教程 > php手册 > body text

有用的symfony命令行语句

WBOY
Release: 2016-06-06 20:12:05
Original
984 people have browsed it

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

source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template