Sonata\ProductBundle\Model\BaseProductProvider::updateStock PHP Method

updateStock() public method

public updateStock ( $product, Sonata\Component\Product\ProductManagerInterface $productManager, $diff )
$productManager Sonata\Component\Product\ProductManagerInterface
    public function updateStock($product, ProductManagerInterface $productManager, $diff)
    {
        $productManager->updateStock($product, $diff);
    }