original_string: protected function deleteLinked($user_id)
      {
          $this->db->delete('cart', array('user_id' => $user_id));
          $this->db->delete('review', array('user_id' => $user_id));
          $this->db->delete('history', array('user_id' => $user_id));
          $this->db->delete('address', array('user_id' => $user_id));
          $this->db->delete('wishlist', array('user_id' => $user_id));
          $this->db->delete('rating_user', array('user_id' => $user_id));
          $this->db->delete('dashboard', array('user_id' => $user_id));
      }
code: protected function deleteLinked($user_id)
      {
          $this->db->delete('cart', array('user_id' => $user_id));
          $this->db->delete('review', array('user_id' => $user_id));
          $this->db->delete('history', array('user_id' => $user_id));
          $this->db->delete('address', array('user_id' => $user_id));
          $this->db->delete('wishlist', array('user_id' => $user_id));
          $this->db->delete('rating_user', array('user_id' => $user_id));
          $this->db->delete('dashboard', array('user_id' => $user_id));
      }
code_tokens: protected function deleteLinked ( $ user_id ) { $ this -> db -> delete ( 'cart' , array ( 'user_id' => $ user_id ) ) ; $ this -> db -> delete ( 'review' , array ( 'user_id' => $ user_id ) ) ; $ this -> db -> delete ( 'history' , array ( 'user_id' => $ user_id ) ) ; $ this -> db -> delete ( 'address' , array ( 'user_id' => $ user_id ) ) ; $ this -> db -> delete ( 'wishlist' , array ( 'user_id' => $ user_id ) ) ; $ this -> db -> delete ( 'rating_user' , array ( 'user_id' => $ user_id ) ) ; $ this -> db -> delete ( 'dashboard' , array ( 'user_id' => $ user_id ) ) ; }
docstring: Deletes all database records related to the user ID
  @param int $user_id
docstring_tokens: Deletes all database records related to the user ID