Zend Framework

update and delete methods of the adapter lack documentation of binding options

Details

  • Type: Docs:  Improvement Docs: Improvement
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.9.1
  • Fix Version/s: 1.9.5
  • Component/s: Zend_Db
  • Labels:
    None

Description

The update and delete methods both can accept an array in the format

array('id = ?'  => $id)

This is not well covered in the manual, which actually implies that it will simply concatenate the values together with AND statements.

If you provide an array of strings as the second argument, these strings are joined together as terms in an expression separated by AND operators.

This should be covered, along with a use case example.

It may also be worth noting that the term (value) may also be a Zend_Db_Expr.

Issue Links

Activity

Hide
Matthew Weier O'Phinney added a comment -

Set component to Zend_Db and assigned to Ralph

Show
Matthew Weier O'Phinney added a comment - Set component to Zend_Db and assigned to Ralph
Hide
Ryan Mauger added a comment -

Fix merged to 1.9 release in r18603

Show
Ryan Mauger added a comment - Fix merged to 1.9 release in r18603

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: