public removeProductCategory ( Sonata\Component\Product\ProductCategoryInterface $productCategory ) | ||
$productCategory | Sonata\Component\Product\ProductCategoryInterface |
public function removeProductCategory(ProductCategoryInterface $productCategory)
{
if ($this->productCategories->contains($productCategory)) {
$this->productCategories->removeElement($productCategory);
}
}