我已经为 Symfnoy 2.3 安装了 PropelBundle (1.2.0)。我将配置文件设置为:
配置.yml
propel:
path: "%kernel.root_dir%/../vendor/propel"
phing_path: "%kernel.root_dir%/../vendor/phing"
config_*.yml
propel:
dbal:
driver: %database_driver%
user: %database_user%
password: %database_password%
dsn: %database_driver%:host=%database_host%;dbname=%database_name%;%database_charset%
options: {}
attributes: {}
参数.yml
parameters:
database_driver: mysql
database_host: 127.0.0.1
database_port: null
database_name: xxxxxxxxx
database_user: xxxxxxxxx
database_password: xxxxxxxxxxx
database_charset: UTF8
mailer_transport: smtp
mailer_host: 127.0.0.1
mailer_user: null
mailer_password: null
locale: en
secret: ThisTokenIsNotSoSecretChangeIt
当我尝试执行推进逆向工程时:
rama@rastrojero:/var/www/AppManantiales$ php app/console propel:reverse
控制台返回:
Use connection named default in dev environment.
No generated files.
有任何想法吗 ?
编辑:我从 Composer 安装 PropelBundle。