src/AppBundle/Controller/MotorController.php
/**
     * Finds and displays a motor entity.
     *
     * @Route("/{id}", name="motor_show")
     * @Method("GET")
     */
Finds and displays a motor entity.
Finds and displays a motor entity .
public function showAction(Motor $motor)
    {
        $deleteForm = $this->createDeleteForm($motor);
        return $this->render('motor/show.html.twig', array(
            'motor' => $motor,
            'delete_form' => $deleteForm->createView(),
        ));
    }
public function showAction ( Motor $ motor ) { $ deleteForm = $ this -> createDeleteForm ( $ motor ) ; return $ this -> render ( 'motor/show.html.twig' , array ( 'motor' => $ motor , 'delete_form' => $ deleteForm -> createView ( ) , ) ) ; }
Finds and displays a motor entity.
Finds and displays a motor entity .