How to add a where clause to fetchAll in Zend -


i'm trying return array of objects used in codeigniter, i'm using zend framework. i'm new @ it. want add clause fetchall(). tried:

$objdocs = new studyclub_meetings_docs(); $this->view->arrdocs = $objdocs->fetchall(array('meeting_id' => $intmeetingid)); 

but returns array of arrays. how return array of objects? i'm using zf 1.x.

zend_db_adapter_abstract::fetchall() appears variant of fetchall() using accepts third argument: $fetchmode

you need adjust code specify fetch mode prefer:

$objdocs = new studyclub_meetings_docs(); $this->view->arrdocs = $objdocs->fetchall(array('meeting_id' => $intmeetingid), zend_db::fetch_obj); 

good luck!


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -