src/Dpavic/JobsBundle/Controller/JobController.php
/**
     * Displays a form to create a new Job entity.
     *
     * @Route("/new", name="job_new")
     * @Method("GET")
     * @Template()
     */
Displays a form to create a new Job entity.
Displays a form to create a new Job entity .
public function newAction()
    {
        $entity = new Job();
        $entity->setType('full-time');
        $form = $this->createForm(new JobType(), $entity);
        return array(
            'entity' => $entity,
            'form' => $form->createView(),
        );
    }
public function newAction ( ) { $ entity = new Job ( ) ; $ entity -> setType ( 'full-time' ) ; $ form = $ this -> createForm ( new JobType ( ) , $ entity ) ; return array ( 'entity' => $ entity , 'form' => $ form -> createView ( ) , ) ; }
Displays a form to create a new Job entity.
Displays a form to create a new Job entity .