瀏覽代碼

[DoctrineBundle] fixed previous merge

Fabien Potencier 14 年之前
父節點
當前提交
e8838e51a6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Symfony/Bundle/DoctrineBundle/Command/DoctrineCommand.php

+ 1 - 1
src/Symfony/Bundle/DoctrineBundle/Command/DoctrineCommand.php

@@ -120,7 +120,7 @@ abstract class DoctrineCommand extends Command
         $pos = strpos($name, ':');
         $alias = substr($name, 0, $pos);
 
-        foreach ($this->container->getParameter('doctrine.orm.entity_managers') as $id) {
+        foreach ($this->container->get('doctrine')->getEntityManagerNames() as $id) {
             $em = $this->container->get($id);
 
             try {