Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
N/A
-
Resolution: Fixed
-
Affects Version/s: 1.8.0
-
Fix Version/s: 1.11.0
-
Component/s: Zend_Application, Zend_Db
-
Labels:None
Description
At the moment I have to do something like this to fetch objects rather than arrays from the database
protected function _initFetch(){ $this->bootstrap('db'); $db = $this->getResource('db'); $db->setFetchMode(Zend_Db::FETCH_OBJ); }
It would be great if the existing Db resource could take another config line like this
resources.db.fetchMode = 5
hi, try this patch :
http://backfront.org/patch/zend_db-fetchmode-config.patch