/** * * @ParamConverter("owner", options={"mapping": {"owner_target" = "id"}}) */ public function commentsWallAction(UsuarioEntity $owner, $target) { $user = $this->getUser(); return $this->render('juzzCommentsBundle:Default:comments-wall.html.twig', array('comments' => array(), 'policy' => $owner->getPoliticaComentarios(), 'target' => $target, 'user' => $user)); }