Hi,
What is the advantage of returning a rowsetClass instead of an array :
function myFunction() {
return new $this->_rowsetClass(array(
'table' => $this,
'rowClass' => $this->_rowClass,
'data' => $this->getAdapter()->query(
"select G.id_member from members G"
)->fetchAll(),
'stored' => true
));
}
(I wonder also what the field 'stored' is for)
Insteaed of returning a simple array :
function myFunction() {
return $this->getAdapter()->query(
"select G.id_member from members G"
)->fetchAll();
}
Thank you for any clarification.
--
View this message in context:
http://www.nabble.com/Custom-functions-in-Zend_Db_Table_Abstract-tp16233923s16154p16233923.html
Sent from the Zend Framework mailing list archive at Nabble.com.