updateStock() 공개 메소드

Updated stock value for a given Product.
public updateStock ( Sonata\Component\Product\ProductInterface | integer $product, integer $diff )
$product Sonata\Component\Product\ProductInterface | integer
$diff integer
예제 #1
0
 /**
  * {@inheritdoc}
  */
 public function updateStock($product, ProductManagerInterface $productManager, $diff)
 {
     $productManager->updateStock($product, $diff);
 }