public function showAction($iso_code)
    {
        $em = $this->getDoctrine()->getManager();

        $entity = $em->getRepository('OrkestroCountryBundle:Country')->findOneBy(array(
                'isoCode' => $iso_code,
            ));

        if (!$entity) {
            throw $this->createNotFoundException('Unable to find Country entity.');
        }

        $deleteForm = $this->createDeleteForm($iso_code);

        return array(
            'entity'      => $entity,
            'delete_form' => $deleteForm->createView(),
        );
    }
public function showAction($iso_code)
    {
        $em = $this->getDoctrine()->getManager();

        $entity = $em->getRepository('OrkestroCountryBundle:Country')->findOneBy(array(
                'isoCode' => $iso_code,
            ));

        if (!$entity) {
            throw $this->createNotFoundException('Unable to find Country entity.');
        }

        $deleteForm = $this->createDeleteForm($iso_code);

        return array(
            'entity'      => $entity,
            'delete_form' => $deleteForm->createView(),
        );
    }
public function showAction ( $ iso_code ) { $ em = $ this -> getDoctrine ( ) -> getManager ( ) ; $ entity = $ em -> getRepository ( 'OrkestroCountryBundle:Country' ) -> findOneBy ( array ( 'isoCode' => $ iso_code , ) ) ; if ( ! $ entity ) { throw $ this -> createNotFoundException ( 'Unable to find Country entity.' ) ; } $ deleteForm = $ this -> createDeleteForm ( $ iso_code ) ; return array ( 'entity' => $ entity , 'delete_form' => $ deleteForm -> createView ( ) , ) ; }
Finds and displays a Country entity.

@Route("/{iso_code}", name="orkestro_backend_country_show")
@Method("GET")
@Template()
Finds and displays a Country entity .