public function storeResultAlias($deliveryExecutionId, $resultId)
    {
        $data = [
            self::DELIVERY_EXECUTION_ID => $deliveryExecutionId,
            self::RESULT_ID => $resultId,
        ];

        $queryBuilder = $this->getQueryBuilder();
        $queryBuilder->delete($this->getTableName());
        $queryBuilder->where(self::RESULT_ID . '=? OR ' . self::DELIVERY_EXECUTION_ID . '= ?');
        $queryBuilder->setParameters([$resultId, $deliveryExecutionId]);
        $res = $this->persistence->query($queryBuilder->getSQL(), $queryBuilder->getParameters())->execute();

        $result = $this->getPersistence()->insert(self::TABLE_NAME, $data) === 1;
        return $result;
    }
public function storeResultAlias($deliveryExecutionId, $resultId)
    {
        $data = [
            self::DELIVERY_EXECUTION_ID => $deliveryExecutionId,
            self::RESULT_ID => $resultId,
        ];

        $queryBuilder = $this->getQueryBuilder();
        $queryBuilder->delete($this->getTableName());
        $queryBuilder->where(self::RESULT_ID . '=? OR ' . self::DELIVERY_EXECUTION_ID . '= ?');
        $queryBuilder->setParameters([$resultId, $deliveryExecutionId]);
        $res = $this->persistence->query($queryBuilder->getSQL(), $queryBuilder->getParameters())->execute();

        $result = $this->getPersistence()->insert(self::TABLE_NAME, $data) === 1;
        return $result;
    }
public function storeResultAlias ( $ deliveryExecutionId , $ resultId ) { $ data = [ self :: DELIVERY_EXECUTION_ID => $ deliveryExecutionId , self :: RESULT_ID => $ resultId , ] ; $ queryBuilder = $ this -> getQueryBuilder ( ) ; $ queryBuilder -> delete ( $ this -> getTableName ( ) ) ; $ queryBuilder -> where ( self :: RESULT_ID . '=? OR ' . self :: DELIVERY_EXECUTION_ID . '= ?' ) ; $ queryBuilder -> setParameters ( [ $ resultId , $ deliveryExecutionId ] ) ; $ res = $ this -> persistence -> query ( $ queryBuilder -> getSQL ( ) , $ queryBuilder -> getParameters ( ) ) -> execute ( ) ; $ result = $ this -> getPersistence ( ) -> insert ( self :: TABLE_NAME , $ data ) === 1 ; return $ result ; }
Add record to the storage
@param string $deliveryExecutionId
@param string $resultId
@return boolean
Add record to the storage