public function getByOrderId($id)
    {
        $connection = $this->getConnection();
        $select     = $connection->select()->from($this->getMainTable())->where('order_id = :internal_order_id');
        $bind       = [':internal_order_id' => (string) $id];

        return $connection->fetchRow($select, $bind);
    }
public function getByOrderId($id)
    {
        $connection = $this->getConnection();
        $select     = $connection->select()->from($this->getMainTable())->where('order_id = :internal_order_id');
        $bind       = [':internal_order_id' => (string) $id];

        return $connection->fetchRow($select, $bind);
    }
public function getByOrderId ( $ id ) { $ connection = $ this -> getConnection ( ) ; $ select = $ connection -> select ( ) -> from ( $ this -> getMainTable ( ) ) -> where ( 'order_id = :internal_order_id' ) ; $ bind = [ ':internal_order_id' => ( string ) $ id ] ; return $ connection -> fetchRow ( $ select , $ bind ) ; }
Gets order data using magento increment id

@param string $id

@return array
@throws LocalizedException
Gets order data using magento increment id