ZF-229: Redefining update method also needs to specify the where clause


In section 6.4.10. Adding Domain Logic of the Zend_Db_Table documentation, the documentation describes how you can override the insert() and update() methods in a particular table class. However, the update method needs to also specify the where clause otherwise it will get lost and all rows will be updated.

public function update($data) { // add a timestamp if (empty($data['updated_on'])) { $data['updated_on'] = time(); } return parent::update($data); }

Needs to change to:

public function update($data, $where) { // add a timestamp if (empty($data['updated_on'])) { $data['updated_on'] = time(); } return parent::update($data, $where); }


Duplicate of ZF-174

Bookkeeping. Closing old issues and assigning them to the person who ultimately resolved the issue.