public function updateCartPrices($items)
    {
        // set prices to changed
        $hasChanged = $this->priceCalculation->setPricesOfChanged($items);
        if ($hasChanged) {
            $this->em->flush();
        }

        return $hasChanged;
    }
public function updateCartPrices($items)
    {
        // set prices to changed
        $hasChanged = $this->priceCalculation->setPricesOfChanged($items);
        if ($hasChanged) {
            $this->em->flush();
        }

        return $hasChanged;
    }
public function updateCartPrices ( $ items ) { // set prices to changed $ hasChanged = $ this -> priceCalculation -> setPricesOfChanged ( $ items ) ; if ( $ hasChanged ) { $ this -> em -> flush ( ) ; } return $ hasChanged ; }
Updates changed prices

@param array $items

@return bool
Updates changed prices