public function deleteBasketAction(Request $request, Basket $basket)
    {
        /** @var EntityManager $em */
        $em = $this->app['orm.em'];
        $em->remove($basket);
        $em->flush();

        return $this->searchBasketsAction($request);
    }
public function deleteBasketAction(Request $request, Basket $basket)
    {
        /** @var EntityManager $em */
        $em = $this->app['orm.em'];
        $em->remove($basket);
        $em->flush();

        return $this->searchBasketsAction($request);
    }
public function deleteBasketAction ( Request $ request , Basket $ basket ) { /** @var EntityManager $em */ $ em = $ this -> app [ 'orm.em' ] ; $ em -> remove ( $ basket ) ; $ em -> flush ( ) ; return $ this -> searchBasketsAction ( $ request ) ; }
Delete a basket

@param  Request $request
@param  Basket  $basket

@return array
Delete a basket