I am building a website in symphony and I am required to use Windows 7 and SQL server 2014 for it. (I'm using php 5.6 in wamp server x64)
I've already checked other similar questions like: Cannot find driver pdo_sqlsrv but they seem not to work and most others are based around the linux version.
into the config.yml of symfony I put:
# Doctrine Configuration
doctrine:
dbal:
driver: pdo_sqlsrv
Currently when I try to run
php bin/console doctrine:database:create
from the root folder of my project it gives me the following:
[Doctrine\DBAL\Driver\PDOException]
could not find driver
[PDOException]
could not find driver
I've checked and upon running a simple query in a test file directly onto pdo it works and is also listed with the pdo drivers as [0]=>sqlsrv
As a note the drivers provided by Windows did not work as expected but instead http://robsphp.blogspot.mx/2012/06/unofficial-microsoft-sql-server-driver.html this ones did.