Helper/Order.php
private function deleteRedundantQuotes($quote)
    {
        $connection = $this->resourceConnection->getConnection();

        // get table name with prefix
        $tableName = $this->resourceConnection->getTableName('quote');

        $sql = "DELETE FROM {$tableName} WHERE bolt_parent_quote_id = :bolt_parent_quote_id AND entity_id != :entity_id";
        $bind = [
            'bolt_parent_quote_id' => $quote->getBoltParentQuoteId(),
            'entity_id' => $quote->getBoltParentQuoteId()
        ];

        $connection->query($sql, $bind);
    }
private function deleteRedundantQuotes($quote)
    {
        $connection = $this->resourceConnection->getConnection();

        // get table name with prefix
        $tableName = $this->resourceConnection->getTableName('quote');

        $sql = "DELETE FROM {$tableName} WHERE bolt_parent_quote_id = :bolt_parent_quote_id AND entity_id != :entity_id";
        $bind = [
            'bolt_parent_quote_id' => $quote->getBoltParentQuoteId(),
            'entity_id' => $quote->getBoltParentQuoteId()
        ];

        $connection->query($sql, $bind);
    }
private function deleteRedundantQuotes ( $ quote ) { $ connection = $ this -> resourceConnection -> getConnection ( ) ; // get table name with prefix $ tableName = $ this -> resourceConnection -> getTableName ( 'quote' ) ; $ sql = "DELETE FROM {$tableName} WHERE bolt_parent_quote_id = :bolt_parent_quote_id AND entity_id != :entity_id" ; $ bind = [ 'bolt_parent_quote_id' => $ quote -> getBoltParentQuoteId ( ) , 'entity_id' => $ quote -> getBoltParentQuoteId ( ) ] ; $ connection -> query ( $ sql , $ bind ) ; }
Delete redundant immutable quotes.

@param Quote $quote
Delete redundant immutable quotes .