Explorar o código

[DoctrineBundle] Fixed the transient test

Christophe Coevoet %!s(int64=14) %!d(string=hai) anos
pai
achega
7517fa4448
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
             }
         }