original_string: public function showAction(StockTransfer $stocktransfer)
      {
          $editForm = $this->createForm(new StockTransferType(), $stocktransfer, array(
              'action' => $this->generateUrl('stock_transfers_update', array('id' => $stocktransfer->getid())),
              'method' => 'PUT',
          ));
          $deleteForm = $this->createDeleteForm($stocktransfer->getId(), 'stock_transfers_delete');
  
          return array(
  
              'stocktransfer' => $stocktransfer,
              'edit_form' => $editForm->createView(),
              'delete_form' => $deleteForm->createView(),
  
          );
      }
code: public function showAction(StockTransfer $stocktransfer)
      {
          $editForm = $this->createForm(new StockTransferType(), $stocktransfer, array(
              'action' => $this->generateUrl('stock_transfers_update', array('id' => $stocktransfer->getid())),
              'method' => 'PUT',
          ));
          $deleteForm = $this->createDeleteForm($stocktransfer->getId(), 'stock_transfers_delete');
  
          return array(
  
              'stocktransfer' => $stocktransfer,
              'edit_form' => $editForm->createView(),
              'delete_form' => $deleteForm->createView(),
  
          );
      }
code_tokens: public function showAction ( StockTransfer $ stocktransfer ) { $ editForm = $ this -> createForm ( new StockTransferType ( ) , $ stocktransfer , array ( 'action' => $ this -> generateUrl ( 'stock_transfers_update' , array ( 'id' => $ stocktransfer -> getid ( ) ) ) , 'method' => 'PUT' , ) ) ; $ deleteForm = $ this -> createDeleteForm ( $ stocktransfer -> getId ( ) , 'stock_transfers_delete' ) ; return array ( 'stocktransfer' => $ stocktransfer , 'edit_form' => $ editForm -> createView ( ) , 'delete_form' => $ deleteForm -> createView ( ) , ) ; }
docstring: Finds and displays a StockTransfer entity.
  
  @Route("/{id}/show", name="stock_transfers_show", requirements={"id"="\d+"})
  @Method("GET")
  @Template()
docstring_tokens: Finds and displays a StockTransfer entity .