public function update($applicationId, $privacy) { $applicationDb = new Shared_Db_Table_Application(); try { $applicationDb->getAdapter()->beginTransaction(); $applicationId = $applicationDb->update(array('privacy' => (string) $privacy), $applicationDb->getAdapter()->quoteInto('id = ?', $applicationId)); $applicationDb->getAdapter()->commit(); } catch (Exception $e) { $applicationDb->getAdapter()->rollBack(); throw $e; } return $this; }