original_string: protected function deleteLinked($order_id)
      {
          $this->db->delete('cart', array('order_id' => $order_id));
          $this->db->delete('order_log', array('order_id' => $order_id));
          $this->db->delete('history', array('entity' => 'order', 'entity_id' => $order_id));
      }
code: protected function deleteLinked($order_id)
      {
          $this->db->delete('cart', array('order_id' => $order_id));
          $this->db->delete('order_log', array('order_id' => $order_id));
          $this->db->delete('history', array('entity' => 'order', 'entity_id' => $order_id));
      }
code_tokens: protected function deleteLinked ( $ order_id ) { $ this -> db -> delete ( 'cart' , array ( 'order_id' => $ order_id ) ) ; $ this -> db -> delete ( 'order_log' , array ( 'order_id' => $ order_id ) ) ; $ this -> db -> delete ( 'history' , array ( 'entity' => 'order' , 'entity_id' => $ order_id ) ) ; }
docstring: Deletes all database records related to the order ID
  @param int $order_id
docstring_tokens: Deletes all database records related to the order ID