I have the same issue.

I would prefer fetch_obj or even bind a class to PDOstatement. 
Looking into the PDO\Result.php '\PDO::FETCH_ASSOC' is hardcoded inside the
fetch().

With PDO you can preset the fetch-mode.
If this would be implemented in ZF2, the developer is more flexible and can
config it. 
It should not be hardcoded.... 

With this PDO feature you can also bind an record-model directly to the PDO
statement. Would be more efficient, i guess.




-----
PHP developer at Moxx
--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/ZF2-Fetching-the-result-from-SQL-query-tp4658663p4659172.html
Sent from the Zend Framework mailing list archive at Nabble.com.

-- 
List: fw-general@lists.zend.com
Info: http://framework.zend.com/archives
Unsubscribe: fw-general-unsubscr...@lists.zend.com


Reply via email to