Explorar el Código

[DoctrineBridge] fixed typo

Fabien Potencier hace 14 años
padre
commit
e0b768bfc0
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/Symfony/Bridge/Doctrine/Form/DoctrineOrmTypeGuesser.php

+ 1 - 1
src/Symfony/Bridge/Doctrine/Form/DoctrineOrmTypeGuesser.php

@@ -122,7 +122,7 @@ class DoctrineOrmTypeGuesser implements FormTypeGuesserInterface
 
         $this->cache[$class] = null;
         foreach ($this->registry->getEntityManagers() as $name => $em) {
-            if ($em->getConfiguration()->getMetadataDriverImpl()->isTransient($class)) {
+            if (!$em->getConfiguration()->getMetadataDriverImpl()->isTransient($class)) {
                 return $this->cache[$class] = array($em->getClassMetadata($class), $name);
             }
         }