private function getPrices(Bundle $bundle, BundleModel $bundleModel)
    {
        $prices = [];
        foreach ($bundle->getPrices() as $price) {
            $group = $this->getCustomerGroupFromPrice($price);

            if (null === $group) {
                continue;
            }

            $netPrice = $price->getPrice() * (100 / ($bundleModel->getArticle()->getTax()->getTax() + 100));

            $priceModel = new PriceModel();
            $priceModel->setBundle($bundleModel);
            $priceModel->setCustomerGroup($group);
            $priceModel->setPrice($netPrice);
            $this->entityManager->persist($priceModel);
            $prices[] = $priceModel;
        }

        return new ArrayCollection($prices);
    }
private function getPrices(Bundle $bundle, BundleModel $bundleModel)
    {
        $prices = [];
        foreach ($bundle->getPrices() as $price) {
            $group = $this->getCustomerGroupFromPrice($price);

            if (null === $group) {
                continue;
            }

            $netPrice = $price->getPrice() * (100 / ($bundleModel->getArticle()->getTax()->getTax() + 100));

            $priceModel = new PriceModel();
            $priceModel->setBundle($bundleModel);
            $priceModel->setCustomerGroup($group);
            $priceModel->setPrice($netPrice);
            $this->entityManager->persist($priceModel);
            $prices[] = $priceModel;
        }

        return new ArrayCollection($prices);
    }
@param Bundle      $bundle
@param BundleModel $bundleModel

@return ArrayCollection