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


At the moment I have to do something like this to fetch objects rather than arrays from the database

protected function _initFetch(){

    $db = $this->getResource('db');



It would be great if the existing Db resource could take another config line like this

resources.db.fetchMode = 5


hi, try this 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.