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);