Esempio n. 1
0
 /**
  * Displays a form to create a new Product entity.
  *
  * @Route("/new", name="admin_product_new")
  * @Method("GET")
  */
 public function newAction()
 {
     $entity = new Product();
     $entity->SetImageLink(uniqid());
     $form = $this->createCreateForm($entity);
     return $this->render('Admin/Product/new.html.twig', array('entity' => $entity, 'form' => $form->createView()));
 }