Method |
Description |
|
findEnabledFromIdAndSlug ( integer $id, string $slug ) : Sonata\Component\Product\ProductInterface | null |
Retrieve an active product from its id and its slug. |
|
findInSameCollections ( mixed $productCollections ) : array |
Returns the products in the same collections as those specified in $productCollections. |
|
findParentsInSameCollections ( mixed $productCollections ) : array |
Returns the parent products in the same collections as those specified in $productCollections. |
|
findVariations ( Sonata\Component\Product\ProductInterface $product ) : array |
|
|
updateStock ( Sonata\Component\Product\ProductInterface | integer $product, integer $diff ) |
Updated stock value for a given Product. |
|