[Solar-talk] toArray() current()

Antti Holvikari anttih at gmail.com
Mon Feb 12 01:42:17 PST 2007


On 2/12/07, Jeff Surgeson <solar at 3hex.com> wrote:
> Hi
>
> Trying to get my sql auth / access role / stuff to run under the new model
> branch, not using the model class just the sql_table etc, however they now
> generate the following errors, I have checked the sql_rowset class all seems
> the same so why does it now generate this error under branch but runs under
> svn?
>
> The access_adapter_sql is based on Antti's class (thanks Antti) the rest, auth
> etc is all solar std stuff.
>
> Fatal error: Call to a member function toArray() on a non-object
> in /var/www/localhost/htdocs/Test/Bulldog/Access/Adapter/Sql.php on line 142

I believe it's this line:

        // fetch and cast to array
        $list = $select->fetch('all')->toArray();

I think Paul might know what has changed so that you won't get an
Solar_Sql_Rowset object from that call to fetch().

-- 
Antti Holvikari <http://phphalo.com>


More information about the solar-talk mailing list