|
|||
|
Hi, I receiving the following warning when I try to take an array_slice of the returned array from fetchAll:
Warning: array_slice() [function.array-slice]: The first argument should be an array If anyone has any ideas as to what's going on, please post a note. Thanks in advance, -Conrad |
|
|||
|
fetchAll only returns an array if it is invoked on an instance of Zend_Db_Adapter.
If you're using an instance of Zend_Db_Table, (ie, a model) fetchAll actually returns an object of the type Zend_Db_Table_Rowset. This can, however, be turned into an array by executing its toArray() method. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|