How to test if table was updated in Zend Framework?

Posted by AD on Stack Overflow See other posts from Stack Overflow or by AD
Published on 2010-05-28T13:54:14Z Indexed on 2010/05/28 14:12 UTC
Read the original article Hit count: 168

When user opens a form to modify a record, but instead of changing information, he just clicks the Update button. Which causes the update() function to return 0. However, I consider this case a valid update task. How would I test it, so I can assign a success message?

Is update() returns -1 when SQL query failed or also 0?

Method: Zend_Db_Table_Abstract::update()

Any ideas?

Thanks

© Stack Overflow or respective owner

Related posts about zend-framework

Related posts about zend-db-table