PHP Interface Sonata\Component\Product\ProductCollectionManagerInterface

Inheritance: extends Sonata\CoreBundle\Model\ManagerInterface
Show file Open project: sonata-project/ecommerce Interface Usage Examples

Public Methods

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.

Method Details

addCollectionToProduct() public method

Adds a Category to a Product.
public addCollectionToProduct ( Sonata\Component\Product\ProductInterface $product, Sonata\ClassificationBundle\Model\CollectionInterface $collection )
$product Sonata\Component\Product\ProductInterface
$collection Sonata\ClassificationBundle\Model\CollectionInterface

removeCollectionFromProduct() public method

Removes a Category from a Product.
public removeCollectionFromProduct ( Sonata\Component\Product\ProductInterface $product, Sonata\ClassificationBundle\Model\CollectionInterface $collection )
$product Sonata\Component\Product\ProductInterface
$collection Sonata\ClassificationBundle\Model\CollectionInterface