/**
  * Remove associated products from a list of product ids
  *
  * @param GenericEvent $event
  */
 public function removeAssociatedProducts(GenericEvent $event)
 {
     $productIds = $event->getSubject();
     $assocTypeCount = $this->assocTypeRepository->countAll();
     foreach ($productIds as $productId) {
         $this->productRepository->removeAssociatedProduct($productId, $assocTypeCount);
     }
 }