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));
    }
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));
    }
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 ) ) ; }
Deletes all database records related to the user ID
@param int $user_id
Deletes all database records related to the user ID