Forgive me if this is obvious, however, I can't seem to see what the issue is here.

This should work:
$this->_someTable->find(1234)->current()->toArray();

According to the API docs, the find() method of Zend_Db_Table returns a ..._Rowset, which then has the current() method, which returns a .._Row.
Zend_Db_Table_Row, in turn, offers the toArray() method

However, when running the above code, I get a *Fatal error*: Call to a member function toArray() on a non-object in...so on and so forth.

I have checked to see if current() is in fact returning an instance of Zend_Db_Table_Row, which it is. I have tried to run the same code without chaining, and I get the same issue.
I'm using 1.5.2.

Any suggestions would be greatly appreciated.

-Jason

Reply via email to