Method | Description | |
---|---|---|
addCollectionToProduct ( Sonata\Component\Product\ProductInterface $product, Sonata\ClassificationBundle\Model\CollectionInterface $collection ) | Adds a Category to a Product. | |
removeCollectionFromProduct ( Sonata\Component\Product\ProductInterface $product, Sonata\ClassificationBundle\Model\CollectionInterface $collection ) | Removes a Category from a Product. |
public addCollectionToProduct ( Sonata\Component\Product\ProductInterface $product, Sonata\ClassificationBundle\Model\CollectionInterface $collection ) | ||
$product | Sonata\Component\Product\ProductInterface | |
$collection | Sonata\ClassificationBundle\Model\CollectionInterface |
public removeCollectionFromProduct ( Sonata\Component\Product\ProductInterface $product, Sonata\ClassificationBundle\Model\CollectionInterface $collection ) | ||
$product | Sonata\Component\Product\ProductInterface | |
$collection | Sonata\ClassificationBundle\Model\CollectionInterface |