我正在尝试使用以下指令在SQL Server数据库中生成数据库的架构:php app/console doctrine:schema:create。
这是错误消息:
在 C:\Projects\Project\vendor\doctrine\dbal\lib\Doctrine\DBAL\Doctrine\DBSrvConnection.php中调用未定义的函数 Doctrine\DBAL\Driver\sqlsrv_connect SQLSrvConnection
参数文件
parameters:
database_driver: pdo_sqlsrv
database_host: localhost
database_port: 1433
database_name: dbname
database_user: user
database_password: password
配置文件
doctrine:
dbal:
driver: "%database_driver%"
host: "%database_host%"
port: "%database_port%"
dbname: "%database_name%"
user: "%database_user%"
password: "%database_password%"
#charset: UTF8
# if using pdo_sqlite as your database driver, add the path in parameters.yml
# e.g. database_path: "%kernel.root_dir%/data/data.db3"
# path: "%database_path%"
orm:
auto_generate_proxy_classes: "%kernel.debug%"
auto_mapping: true
我想你还没有为此安装php插件