getRequest()->get('product_id', null); $productAdvancePrice = new ProductAdvancePriceQuery(); if(null === $productAdvancePrice->findBy('productId',$productId)){ return $this->create($productId); }else{ return $this->update($productAdvancePrice); } } /** * @param $product_id int * * @return \Thelia\Core\HttpFoundation\Response */ public function create($product_id) { $priceConfigForm = new PriceConfig($this->getRequest()); $message = false; return null; } /** * * * @param $productAdvancePrice ProductAdvancePriceQuery */ public function update($productAdvancePrice) { $priceConfigForm = new PriceConfig($this->getRequest()); $message = false; return null; } }