From 20747fcdc71b68e2cebd2e92d080d28f2333dea4 Mon Sep 17 00:00:00 2001 From: William DURAND Date: Wed, 13 Apr 2011 17:00:29 +0200 Subject: [PATCH] New service: propel.connection which is the active PropelPDO connection --- PropelBundle.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PropelBundle.php b/PropelBundle.php index d34c08f..1e73429 100644 --- a/PropelBundle.php +++ b/PropelBundle.php @@ -39,6 +39,9 @@ class PropelBundle extends Bundle } \Propel::initialize(); + + $this->container->set('propel.connection', + \Pnfigurationropel::getConnection($this->container->getParameter('propel.dbal.default_connection'))); } }