我正在尝试使用以下指令在SQL Server数据库中生成数据库的模式:php app / console doctrine:schema:create。
这是错误消息:
在C:\ Projects \ Project \ vendor \ doctrine \ dbal \ lib \ Doctrine \ DBAL \ Driver \ SQLSrvConnection.php中调用未定义的函数Doctrine \ DBAL \ Driver \ SQLSrv \ sqlsrv_connect()
参数文件
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
答案 0 :(得分:0)
我猜你没有为
安装 php插件