ZF-1685: Zend_Db Manual Bug at example 9.11
Description
A bug was brought up by aaroncampbell on the manual for Zend_Db at 9.1.3.5. Fetching Key-Value Pairs from a Result Set
<?php
$db->setFetchMode(Zend_Db::FETCH_OBJ);
$result = $db->fetchAAssocssoc('SELECT bug_id, bug_status FROM bugs');
echo $result[2];
I think it meant fetchAssoc, but this section is about using fetchPairs()
Comments
Posted by Bill Karwin (bkarwin) on 2007-07-05T23:52:51.000+0000
Is this an issue with Zend_Debug or Zend_Db? Is this an issue in section 9.1 or 9.11 of the manual (btw, there is no section 9.11)?
I appreciate the issue report, but please try to be more accurate with the details when you make such reports.
Posted by Bill Karwin (bkarwin) on 2007-07-05T23:54:31.000+0000
Recategorize as Zend_Db issue. Reword summary.
I see you did say it was example 9.11. I understand now.
Posted by Geoffrey Tran (potatobob) on 2007-07-05T23:59:02.000+0000
Sorry for the confusion, I forgot to place a link there http://framework.zend.com/manual/en/… ;)
Posted by Bill Karwin (bkarwin) on 2007-07-06T00:22:10.000+0000
Fixed in revision 5579.
Posted by Bill Karwin (bkarwin) on 2007-07-17T14:59:57.000+0000
Change fixed version to 1.1.0.