/**
  * {@inheritdoc}
  */
 public function removeProduct(ProductInterface $product)
 {
     $this->products->removeElement($product);
     return $this;
 }
Exemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function removeAssociatedProduct(ProductInterface $product)
 {
     if ($this->hasAssociatedProduct($product)) {
         $this->associatedProducts->removeElement($product);
     }
 }