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

        return $this->redirect($this->generateUrl('storage_list'));
    }
public function deleteAction(Storage $storage)
    {
        $em = $this->getDoctrine()->getManager();
        $em->remove($storage);
        $em->flush();

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

@param Storage $storage

@return Response
Delete storage .