public function showDeliveryAction()
    {
        $em = $this->container->get('doctrine')->getManager();
        $user = $this->container->get('security.token_storage')->getToken()->getUser();
        $addresses = $em->getRepository('EcommerceBundle:Address')
            ->findBy(array(
                    'actor' => $user,
                ));

        return array(
                'user'      => $user,
                'addresses' => $addresses
            );
    }
public function showDeliveryAction()
    {
        $em = $this->container->get('doctrine')->getManager();
        $user = $this->container->get('security.token_storage')->getToken()->getUser();
        $addresses = $em->getRepository('EcommerceBundle:Address')
            ->findBy(array(
                    'actor' => $user,
                ));

        return array(
                'user'      => $user,
                'addresses' => $addresses
            );
    }
public function showDeliveryAction ( ) { $ em = $ this -> container -> get ( 'doctrine' ) -> getManager ( ) ; $ user = $ this -> container -> get ( 'security.token_storage' ) -> getToken ( ) -> getUser ( ) ; $ addresses = $ em -> getRepository ( 'EcommerceBundle:Address' ) -> findBy ( array ( 'actor' => $ user , ) ) ; return array ( 'user' => $ user , 'addresses' => $ addresses ) ; }
Show delivery addresses

@return Response

@Route("/profile/delivery/")
@Method({"GET","POST"})
@Template("EcommerceBundle:Profile:Delivery/show.html.twig")
Show delivery addresses