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