Пример #1
0
 /**
  * increase the quantity for an existing cartItem
  *
  * @param EventDispatcherInterface $dispatcher
  * @param CartItem $cartItem
  * @param float $quantity
  *
  * @throws \Exception
  * @throws \Propel\Runtime\Exception\PropelException
  * @return CartItem
  */
 protected function updateQuantity(EventDispatcherInterface $dispatcher, CartItem $cartItem, $quantity)
 {
     $cartItem->setDisptacher($dispatcher);
     $cartItem->updateQuantity($quantity)->save();
     return $cartItem;
 }