ZF-11290: Docblock of Zend_Db_Select::where() not in sync with select API
Description
/** * ... * * // 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 ...
$select->where('id = :id')
->bind(array(':id' => $id));
$select->fetchAll($select);
Comments
No comments to display