コード例 #1
0
ファイル: Variant.php プロジェクト: umpirsky/marello
 /**
  * Remove item
  *
  * @param Product $item
  *
  * @return Product
  */
 public function removeProduct(Product $item)
 {
     if ($this->products->contains($item)) {
         $this->products->removeElement($item);
         $item->setVariant(null);
     }
     return $this;
 }
コード例 #2
0
ファイル: Store.php プロジェクト: next-sentence/sylius-test
 /**
  * {@inheritdoc}
  */
 public function hasProduct(Product $product)
 {
     return $this->products->contains($product);
 }
コード例 #3
0
 /**
  * @param Product $product
  */
 public function removeProduct($product)
 {
     $this->products->removeElement($product);
 }
コード例 #4
0
ファイル: Bug.php プロジェクト: tsubo/bug_tracker
 /**
  * Remove product
  *
  * @param \AppBundle\Entity\Product $product
  */
 public function removeProduct(\AppBundle\Entity\Product $product)
 {
     $this->products->removeElement($product);
 }
コード例 #5
0
ファイル: Category.php プロジェクト: hafeez3000/orocommerce
 /**
  * @param Product $product
  *
  * @return $this
  */
 public function removeProduct(Product $product)
 {
     if ($this->products->contains($product)) {
         $this->products->removeElement($product);
     }
     return $this;
 }
コード例 #6
0
 /**
  * @param Product $product
  * @param $stopPropagation
  * @return $this
  */
 public function removeProduct(Product $product, $stopPropagation = false)
 {
     if (!$stopPropagation) {
         $product->setPackage(null, true);
     }
     $this->products->removeElement($product);
     return $this;
 }
コード例 #7
0
ファイル: Door.php プロジェクト: jlm-entreprise/model-bundle
 /**
  * Remove parts
  *
  * @param ProductInterface $parts
  */
 public function removePart(ProductInterface $parts)
 {
     return $this->parts->removeElement($parts);
 }