예제 #1
0
 /**
  * @param Basket $basket
  * @return BasketItemUpdateAction
  */
 public function setBasketItem(Basket $basket)
 {
     if (!$basket->isOwnedBy($this->user)) {
         throw new NotFoundHttpException("Basket item does not exists");
     }
     parent::setObject($basket);
     return $this;
 }
예제 #2
0
 /**
  * @param Order $order
  * @return OrderUpdateAction
  */
 public function setOrder(Order $order)
 {
     parent::setObject($order);
     return $this;
 }
예제 #3
0
 /**
  * @param Product $product
  * @return ProductUpdateAction
  */
 public function setProduct(Product $product)
 {
     parent::setObject($product);
     return $this;
 }
예제 #4
0
 /**
  * @param Supplier $supplier
  * @return SupplierUpdateAction
  */
 public function setSupplier(Supplier $supplier)
 {
     parent::setObject($supplier);
     return $this;
 }