Silex application with doctrine2 and twig