Le mardi 5 mai 2015 18:39:10 UTC+2, Andy Monkiewicz a écrit :
>
> I am having quite the time trying to get doctrine to talk to SQL server 
> and haven't been able to find a solution anywhere. I am using php 5.5.23 on 
> ubuntu, doctrine version 2.5.0-DEV (attempting to get symfony2 working, on 
> day 3 of no success!)
>
> Composer.json
>
>         "symfony/symfony": "2.6.*",
>         "doctrine/orm": "~2.2,>=2.2.3,<2.5",
>         "doctrine/dbal": "<2.5",
>         "doctrine/doctrine-bundle": "~1.2",
>
> Loaded php modules:
>
> php -m 
>
> [PHP Modules]
> bcmath
> bz2
> calendar
> Core
> ctype
> curl
> date
> dba
> dom
> ereg
> exif
> fileinfo
> filter
> ftp
> gd
> gettext
> hash
> iconv
> json
> ldap
> libxml
> mbstring
> mcrypt
> mhash
> mssql
> mysql
> mysqli
> openssl
> pcntl
> pcre
> PDO
> pdo_dblib
> pdo_mysql
> pdo_pgsql
> pgsql
> Phar
> posix
> readline
> Reflection
> session
> shmop
> SimpleXML
> soap
> sockets
> SPL
> standard
> sysvmsg
> sysvsem
> sysvshm
> tokenizer
> wddx
> xdebug
> xml
> xmlreader
> xmlwriter
> Zend OPcache
> zip
> zlib
>
> [Zend Modules]
> Xdebug
> Zend OPcache
>
> The relevant phpinfo information:
>
> php -i
>
> PDO drivers => dblib, mysql, pgsql
>
> pdo_dblib
>
> PDO Driver for FreeTDS/Sybase DB-lib => enabled
> Flavour => freetds
>
> Now to the actual errors:
>
> I am trying to run the following command: 
>
> php app/console doctrine:mapping:import --force SomethingSomethingBundle
>
> When I have parameters.yml set like this:
>
> database_driver: pdo_sqlsrv
>
> I get the following error:
>
>   [PDOException]
>   could not find driver
>
> When I change the parameters.yml to this:
>
> database_driver: sqlsrv
>
> I get a whole page of errors but they start with this one:
>
> PHP Fatal error:  Call to undefined function 
> Doctrine\DBAL\Driver\SQLSrv\sqlsrv_configure() in 
> /var/www/Something/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/SQLSrv/SQLSrvConnection.php
>  
> on line 48
>
> Those are the only 2 driver options I have as if I put in anything else I 
> get this message:
>
>   [Doctrine\DBAL\DBALException]
>   The given 'driver' anythingelse is unknown, Doctrine currently supports 
> only the following drive
>   rs: pdo_mysql, pdo_sqlite, pdo_pgsql, pdo_oci, oci8, ibm_db2, pdo_ibm, 
> pdo_sqlsrv, mysqli, drizz
>   le_pdo_mysql, sqlsrv
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to