Issues

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')

[1] http://framework.zend.com/manual/en/…

Comments

Patch to fix the issue.

Fixed in trunk and merged into the 1.9 release branch.