Exemple #1
0
 protected function handleProduct(Release $release, Product $product)
 {
     $release->addProduct($product);
     $product->setRelease($release);
     $productTracks = $this->productTrackRepository->getAllByProductId($product->getProductId());
     foreach ($productTracks as $productTrack) {
         $this->handleProductTrack($product, $productTrack);
     }
     $prices = $this->priceRepository->getAllByProductId($product->getProductId());
     foreach ($prices as $price) {
         $product->addPrice($price);
         $price->setProduct($product);
     }
 }