Ver código fonte

[DoctrineBundle] Fixed the transient test

Christophe Coevoet 14 anos atrás
pai
commit
7517fa4448
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/Symfony/Bundle/DoctrineBundle/Registry.php

+ 1 - 1
src/Symfony/Bundle/DoctrineBundle/Registry.php

@@ -237,7 +237,7 @@ class Registry implements RegistryInterface
         foreach ($this->entityManagers as $id) {
             $em = $this->container->get($id);
 
-            if ($em->getConfiguration()->getMetadataDriverImpl()->isTransient($class)) {
+            if (!$em->getConfiguration()->getMetadataDriverImpl()->isTransient($class)) {
                 return $em;
             }
         }