فهرست منبع

Merge remote branch 'lenar/doctrinebundle'

* lenar/doctrinebundle:
  fix variable names
Fabien Potencier 14 سال پیش
والد
کامیت
736948887d
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      src/Symfony/Bundle/DoctrineBundle/Command/Proxy/DoctrineCommandHelper.php

+ 2 - 2
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');
     }