fix variable names

This commit is contained in:
lenar 2011-05-04 11:11:38 +03:00
parent 6d334289ee
commit 1301995cdc

View File

@ -30,7 +30,7 @@ abstract class DoctrineCommandHelper
*/ */
static public function setApplicationEntityManager(Application $application, $emName) 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 = $application->getHelperSet();
$helperSet->set(new ConnectionHelper($em->getConnection()), 'db'); $helperSet->set(new ConnectionHelper($em->getConnection()), 'db');
$helperSet->set(new EntityManagerHelper($em), 'em'); $helperSet->set(new EntityManagerHelper($em), 'em');
@ -38,7 +38,7 @@ abstract class DoctrineCommandHelper
static public function setApplicationConnection(Application $application, $connName) 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 = $application->getHelperSet();
$helperSet->set(new ConnectionHelper($connection), 'db'); $helperSet->set(new ConnectionHelper($connection), 'db');
} }