em = $this->getDoctrine()->getManager(); $this->user = $this->get('security.token_storage')->getToken()->getUser(); } }