[Solar-talk] toArray() current()
Antti Holvikari
anttih at gmail.com
Fri Feb 16 16:26:28 PST 2007
On 2/17/07, Rodrigo Moraes <rodrigo.moraes at gmail.com> wrote:
> On 2/16/07, Jeff Surgeson wrote:
> > I have successfully set up and used the new model class but have not been able
> > to get the default solar auth and access side working with the new model
> > class.
>
> Ok, here are two hacks to get the auth/access sql adapters working
> with the model branch (I was referring the branch when I said SVN in
> my last message):
>
> 1. Solar_Auth_Adapter_Sql, line 149. Replace:
>
> $row = $rows->current();
>
> By:
>
> $row = $row[0];
>
> 2. Solar_Access_Adapter_Sql, line 155. Replace:
>
> $list = $select->fetch('all')->toArray();
>
> By:
>
> $list = $select->fetch('all');
>
> Done. Authentication is no more a problem for you to test the new
> model classes :)
I'm assuming you're using Abovo_Access_Adapter_Sql? I'm developing on
top of only actual releases so I will not provide fixes for SVN stuff.
So thanks Rodrigo and Jeff for letting us (and me in particular) know
which parts of my code brake with SVN stuff :-). I will make those
changes when 0.27.0 is out, so hurry up Paul! ;-)
--
Antti Holvikari <http://phphalo.com>
More information about the solar-talk
mailing list