As it was answered on this question How do I get the entity that represents the current user in Symfony2? That shows you how to do it on a controller, but how do you do get the actual user entity on a php template without having to send it on a parameter to the template?
The far as I get was:
$app->getSession()->getUsername();
But that just gave a raw var with the user name, i want the user entity.