public function DeleteClientDetails(Gyuser_Model_User $obj) { try { $table = $this->getDbTable(); $set = array('status' => 0); $where = array('id = ?' => $obj->getId()); $result = $table->update($set, $where); if ($result) { $addressMapper = new Gyuser_Model_AddressDataMapper(); $addressObj = new Gyuser_Model_Address(); $addressObj->setClient_id($obj->getId()); $addressMapper->DeleteClientAddress($addressObj); $bankMapper = new Gyuser_Model_BankAccountsDataMapper(); $bankObj = new Gyuser_Model_BankAccounts(); $bankObj->setUser_id($obj->getId()); $bankMapper->DeleteClientBankAccounts($bankObj); } return $result; } catch (Exception $e) { echo $e; } }