From 1301995cdc0589dfe1fd67f67680ee77b27450a7 Mon Sep 17 00:00:00 2001 From: lenar Date: Wed, 4 May 2011 11:11:38 +0300 Subject: [PATCH] fix variable names --- .../DoctrineBundle/Command/Proxy/DoctrineCommandHelper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Bundle/DoctrineBundle/Command/Proxy/DoctrineCommandHelper.php b/src/Symfony/Bundle/DoctrineBundle/Command/Proxy/DoctrineCommandHelper.php index cdb397d317..f1409fbf0c 100644 --- a/src/Symfony/Bundle/DoctrineBundle/Command/Proxy/DoctrineCommandHelper.php +++ b/src/Symfony/Bundle/DoctrineBundle/Command/Proxy/DoctrineCommandHelper.php @@ -30,7 +30,7 @@ abstract class DoctrineCommandHelper */ static public function setApplicationEntityManager(Application $application, $emName) { - $em = $application->getKernel()->getContainer()->get('doctrine')->getEntityManager($name); + $em = $application->getKernel()->getContainer()->get('doctrine')->getEntityManager($emName); $helperSet = $application->getHelperSet(); $helperSet->set(new ConnectionHelper($em->getConnection()), 'db'); $helperSet->set(new EntityManagerHelper($em), 'em'); @@ -38,7 +38,7 @@ abstract class DoctrineCommandHelper static public function setApplicationConnection(Application $application, $connName) { - $connection = $application->getKernel()->getContainer()->get('doctrine')->getConnection($name); + $connection = $application->getKernel()->getContainer()->get('doctrine')->getConnection($connName); $helperSet = $application->getHelperSet(); $helperSet->set(new ConnectionHelper($connection), 'db'); }