I cannot update an entry in my table. The code I am using is below:
class Model_Notification extends Zend_Db_Table_Abstract
{
protected $_name = "notifications";
public function encrypt($id,$key)
{
$select = $this->select();
$select->where('id = ?', $id);
$row = $this->fetchRow($select);
if( $row )
{
$row->key = $key;
$row->save();
return true;
}
return false;
}
}
At first, I thought it might be the column name "key", so I changed it to "passkey" but no success. I am getting true returned to me every time!
I can still add/delete to the table, but I canon understand why this update save() does not work!
Cheers,