src/Controller/Admin/AuthorController.php
public function newAction()
    {
        $entity = new Author();
        $form   = $this->createForm(new AuthorType(), $entity);

        return array(
            'entity' => $entity,
            'form'   => $form->createView(),
        );
    }
public function newAction()
    {
        $entity = new Author();
        $form   = $this->createForm(new AuthorType(), $entity);

        return array(
            'entity' => $entity,
            'form'   => $form->createView(),
        );
    }
public function newAction ( ) { $ entity = new Author ( ) ; $ form = $ this -> createForm ( new AuthorType ( ) , $ entity ) ; return array ( 'entity' => $ entity , 'form' => $ form -> createView ( ) , ) ; }
Displays a form to create a new Author entity.

@Route("/new", name="manage_author_new")
@Template()
Displays a form to create a new Author entity .