I'm using a repository in Symfony2-controller like this:
$blog = $em->getRepository('BlogBloggerBundle:BlogData')->getBlogData($id);
Before I call it into the twig view through an array.
All works right but the issue is that it make up a footer menu, then, i should call it almost in every action which i need.
How i can call it from a "common" repository every time which i need?