public function newAction()
    {
        $entity = new MessageType();
        $form   = $this->createCreateForm($entity);

        return $this->render(
            'BisonLabSakonninBundle:MessageType:edit.html.twig', array(
            'entity' => $entity,
            'edit_form'   => $form->createView(),
        ));
    }
public function newAction()
    {
        $entity = new MessageType();
        $form   = $this->createCreateForm($entity);

        return $this->render(
            'BisonLabSakonninBundle:MessageType:edit.html.twig', array(
            'entity' => $entity,
            'edit_form'   => $form->createView(),
        ));
    }
public function newAction ( ) { $ entity = new MessageType ( ) ; $ form = $ this -> createCreateForm ( $ entity ) ; return $ this -> render ( 'BisonLabSakonninBundle:MessageType:edit.html.twig' , array ( 'entity' => $ entity , 'edit_form' => $ form -> createView ( ) , ) ) ; }
Displays a form to create a new MessageType entity.

@Route("/new", name="messagetype_new", methods={"GET"})
Displays a form to create a new MessageType entity .