public function deleteAction(Item $item)
    {
        $em = $this->getDoctrine()->getManager();
        $em->remove($item);
        $em->flush();

        return $this->redirect($this->generateUrl('home'));
    }
public function deleteAction(Item $item)
    {
        $em = $this->getDoctrine()->getManager();
        $em->remove($item);
        $em->flush();

        return $this->redirect($this->generateUrl('home'));
    }
public function deleteAction ( Item $ item ) { $ em = $ this -> getDoctrine ( ) -> getManager ( ) ; $ em -> remove ( $ item ) ; $ em -> flush ( ) ; return $ this -> redirect ( $ this -> generateUrl ( 'home' ) ) ; }
Delete item.

@param Item $item

@return Response
Delete item .