public function saveAction(Request $request)
    {
        $cart = $this->getCurrentCart();
        $form = $this->createForm(CartType::class, $cart);

        if ($form->handleRequest($request)->isValid()) {
            
            $em = $this->getDoctrine()->getManager();
            $em->persist($cart);
            $em->flush();
            
            return $this->redirect($this->generateUrl('ecommerce_checkout_identification'));
            
//            $event = new CartEvent($cart);
//            $event->isFresh(true);
//
//            // Update models
//            $this->dispatchEvent(SyliusCartEvents::CART_SAVE_INITIALIZE, $event);
//
//            // Write flash message
//            $this->dispatchEvent(SyliusCartEvents::CART_SAVE_COMPLETED, new FlashEvent());
        }

        return array(
            'cart' => $cart,
            'form' => $form->createView()
        );
    }