public function deleteAdjustmentAction() { $this->_helper->layout->disableLayout(); $this->_helper->viewRenderer->setNoRender(TRUE); if (isset($this->_request->id) && !empty($this->_request->id)) { $id = $this->_request->id; $this->_em->getConnection()->beginTransaction(); try { $stock_master = new Model_StockMaster(); $stock_master->deleteAdjustment($id); $this->_em->getConnection()->commit(); } catch (Exception $e) { $this->_em->getConnection()->rollback(); $this->_em->close(); App_FileLogger::info($e); } echo 1; exit; } }