Subject: SqlSrv Adapter
I am having difficulty making the connection to sqlserver work.
Out of phpactiverecord I can connect and list data, but when I make the connection as it says the manual it does not work. (I can not use the commands such as Model :: find (1))
Has anyone been through this and can you help me?
Down as I'm making the connection
$ cfg = \ ActiveRecord \ Config :: instance ();
$ cfg-> set_model_directory ('models /');
$ cfg-> set_connections (array ('development' =>
'sql: //'. $ this-> user. ':'. $ this-> password. '@'. $ this-> connection. '/'. $ this-> database. '; charset = utf8'));
I downloaded the adapter and added the lib folder just like the link
I thank the attention
I've got a version passing Travis.ci tests on several php builds. Really just a straight merge from the fork you just linked and the original repo.
According to travis.ci, it's working on PHP versions 5.4, 5.5, 5.6, 7.0, 7.1 as of the writing of this reply.
Let me know how you fare, I'll see if I can coax some backwards/forwards compatability out of it over the summer.
Right, a link would be useful.
June 27 2010
April 16, 2013
www.phpactiverecord.org - An easy to use ORM for PHP