public function indexAction()
{
$user = $this->getUser();
if (!$user) {
throw new AccessDeniedException();
}
$orders = $this->getOrderManager()->findForUser($user, array('createdAt' => 'DESC'));
$this->get('sonata.seo.page')->setTitle($this->get('translator')->trans('order_index_title', array(), 'SonataOrderBundle'));
return $this->render('SonataOrderBundle:Order:index.html.twig', array('orders' => $orders, 'breadcrumb_context' => 'user_order'));
}