ZF-8155: Incorrect example of Zend_Db_Table_Select::where

Issue Type: Docs: Problem Created: 2009-10-27T00:53:17.000+0000 Last Updated: 2009-10-30T08:28:03.000+0000 Status: Resolved Fix version(s): - 1.9.6 (24/Nov/09)

Reporter: Luká? Lalinský (lukas.lalinsky) Assignee: Jordan Ryan Moore (jordanryanmoore) Tags: - Zend_Db_Select

  • Zend_Db_Table

Related issues: Attachments: - where.diff


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



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.

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.