Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function rotatorAddAction(Request $request)
- {
- $em = $this->getDoctrine()->getManager();
- $product = new Products();
- $product->setCategory($em->getRepository(Productcategory::class)->find(1));
- return $this->redirect($this->generateUrl('updateProduct',array('product'=>$product)));
- }
- /**
- * @Route("/rotator/update", name="updateProduct")
- *
- */
- public function rotatorUpdateAction(Request $request, $product)
- {
- var_dump($product);
- die();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement