Mylo Zauberer Wed Dec 27 16:54:14 -0500 2017

Subject: SqlSrv Adapter

Hello
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
https://github.com/funkjedi/php-activerecord/tree/08314c7a14465d2119269cb59ad20bf6ebd3bd15/lib/adapters

I thank the attention


David Culbreth Wed Mar 07 02:38:54 -0500 2018

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.
https://github.com/AndroxxTraxxon/php-activerecord

David Culbreth Wed Mar 07 02:39:10 -0500 2018

Right, a link would be useful.
https://github.com/AndroxxTraxxon/php-activerecord

(1-2/2)