Zend_Db_Table - Update don't work
- by poru
The code seems not working.
// $counter is an instance of Zend_Db_Table_Abstract
$counter->update(array('hits' => 'hits+1'), '"id" = 1');
I took a look into the DB profiler and find the following query:
UPDATE `downloads` SET `hits` = ? WHERE ("id" = 1)