function upgradesubAction() { $packageId = $this->_getParam('packageId'); $this->view->packageId = $packageId; $this->view->rowUser = $this->_user; $modelUserFinance = new Kutu_Core_Orm_Table_UserFinance(); $userFinanceInfo = $modelUserFinance->fetchRow("userId='" . $this->_user->kopel . "'"); if (!$userFinanceInfo) { $finance = $modelUserFinance->fetchNew(); $finance->userId = $this->_user->kopel; $finance->taxNumber = ''; $finance->taxCompany = $this->_user->company; $finance->taxAddress = $this->_user->address; $finance->taxCity = $this->_user->city; $finance->taxProvince = $this->_user->state; $finance->taxCountryId = $this->_user->countryId; $finance->taxZip = $this->_user->zip; $finance->save(); } $userFinanceInfo = $modelUserFinance->fetchRow("userId='" . $this->_user->kopel . "'"); $this->view->userInfo = $userFinanceInfo; }