private function createEditForm(Country $entity)
    {
        $form = $this->createForm(new CountryType($this->get('doctrine.orm.entity_manager')->getRepository('OrkestroLocaleBundle:Locale')), $entity, array(
            'action' => $this->generateUrl('orkestro_backend_country_update', array('iso_code' => $entity->getIsoCode())),
            'method' => 'PUT',
        ));

        $form->add('submit', 'submit', array('label' => 'Update'));

        return $form;
    }
private function createEditForm(Country $entity)
    {
        $form = $this->createForm(new CountryType($this->get('doctrine.orm.entity_manager')->getRepository('OrkestroLocaleBundle:Locale')), $entity, array(
            'action' => $this->generateUrl('orkestro_backend_country_update', array('iso_code' => $entity->getIsoCode())),
            'method' => 'PUT',
        ));

        $form->add('submit', 'submit', array('label' => 'Update'));

        return $form;
    }
private function createEditForm ( Country $ entity ) { $ form = $ this -> createForm ( new CountryType ( $ this -> get ( 'doctrine.orm.entity_manager' ) -> getRepository ( 'OrkestroLocaleBundle:Locale' ) ) , $ entity , array ( 'action' => $ this -> generateUrl ( 'orkestro_backend_country_update' , array ( 'iso_code' => $ entity -> getIsoCode ( ) ) ) , 'method' => 'PUT' , ) ) ; $ form -> add ( 'submit' , 'submit' , array ( 'label' => 'Update' ) ) ; return $ form ; }
Creates a form to edit a Country entity.

@param Country $entity The entity

@return \Symfony\Component\Form\Form The form
Creates a form to edit a Country entity .