ZF-11290: Docblock of Zend_Db_Select::where() not in sync with select API

Issue Type: Docs: Problem Created: 2011-04-14T16:19:12.000+0000 Last Updated: 2011-04-14T16:19:12.000+0000 Status: Open Fix version(s): Reporter: Kim Blomqvist (kblomqvist) Assignee: Ralph Schindler (ralph) Tags: - Zend_Db_Select

Related issues: Attachments:


<pre class="highlight">
 * ...
 * // alternatively, with named binding
 * $select->where('id = :id');
 * Note that it is more correct to use named bindings in your
 * queries for values other than strings. When you use named
 * bindings, don't forget to pass the values when actually
 * making a query:
 * $db->fetchAll($select, array('id' => 5));
 * ...

The docblock of Zend_Db_Select::where() is not valid anymore. Instead of this you have to use bind() method ...

<pre class="highlight">
$select->where('id = :id')
       ->bind(array(':id' => $id));


No comments to display

Have you found an issue?

See the Overview section for more details.


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

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