public function DeleteClientAddress(Gyuser_Model_Address $obj) { try { $table = $this->getDbTable(); $set = array('status' => 0); $where = array('client_id = ?' => $obj->getClient_id()); $result = $table->update($set, $where); return $result; } catch (Exception $e) { echo $e; } }