瀏覽代碼

fixed typo

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

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

@@ -106,7 +106,7 @@ abstract class DoctrineCommand extends Command
         $connections = array();
         $ids = $this->container->getServiceIds();
         foreach ($ids as $id) {
-            preg_match('^doctrine\.dbal\.(.*)_connection$', $id, $matches);
+            preg_match('/^doctrine\.dbal\.(.*)_connection$/', $id, $matches);
             if ($matches) {
                 $name = $matches[1];
                 $connections[$name] = $this->container->get($id);