ZF-8155: Incorrect example of Zend_Db_Table_Select::where
Description
Example 15.101 [1] on the Zend_Db_Table documentation page shows an example of code that doesn't actually work. It uses an array($condition => $value) in the where clause:
$select = $table->select()->where(array('bug_status = ?' => 'NEW'))
But as far as I can see, this isn't implemented. I think it should be changed to:
$select = $table->select()->where('bug_status = ?', 'NEW')
Comments
Posted by Luká? Lalinský (lukas.lalinsky) on 2009-10-27T00:54:10.000+0000
Patch to fix the issue.
Posted by Jordan Ryan Moore (jordanryanmoore) on 2009-10-30T08:28:02.000+0000
Fixed in trunk and merged into the 1.9 release branch.