ZF-6620: Zend_Application Db Resource - set fetch mode via config

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

Comments

hi, try this patch : http://backfront.org/patch/…

;)

Improvement in patch and was added tests units.

Patch v2 validation of fetch_mode supported by adapters.

Fixed in trunk r23192, applied to release branch 1.11 r23193.