问题
We are currently running a website that uses pdo_odbc and ADOdb Active Record as ORM when working with our Sybase database. We are trying to use Doctrine 2 but we realize that it does not support ODBC neither Sybase natively.
Do you have any idea if there is a way to solve this problem in Doctrine 2 without having to code a Sybase driver from zero?
Thanks in advance.
回答1:
Sadly you are out of luck.
Coding your own driver is the only way, as stated here there are no plans for implementing new drivers which are not actively used by the current developers.
回答2:
Use Devart Driver to make a PDO odbc connection with Sybase.
create Devart Driver in System DSN in ODBC Datasource administrator
To achive doctrine, pass connection Object to doctrine parameters
来源:https://stackoverflow.com/questions/9211085/is-it-possible-to-work-with-a-sybase-db-natively-in-doctrine-2