Is it possible to work with a Sybase DB natively in Doctrine 2?

夙愿已清 提交于 2020-01-17 01:40:15

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!