Sonata\ProductBundle\Entity\ProductSetManager::delete PHP Method

delete() public method

Deletes a product.
public delete ( Sonata\Component\Product\ProductInterface $productSet, boolean $andFlush = true )
$productSet Sonata\Component\Product\ProductInterface
$andFlush boolean
    public function delete($productSet, $andFlush = true)
    {
        throw new \RuntimeException('A ProductSetManager cannot delete a product');
    }
ProductSetManager