Exemple #1
0
 protected function handleRelease(Release $release)
 {
     $label = $this->labelRepository->getById($release->getLabelId());
     if ($label) {
         $release->setLabel($label);
         $artist = $this->artistRepository->getByLabelArtistId($label->getId());
         if (!$artist) {
             $this->missingArtists++;
         }
     } else {
         $this->missingLabels++;
     }
     $products = $this->productRepository->getAllByReleaseId($release->getReleaseId());
     foreach ($products as $product) {
         $this->handleProduct($release, $product);
     }
 }