Browse Source

[DoctrineBridge] fixed typo

Fabien Potencier 14 years ago
parent
commit
e0b768bfc0
1 changed files with 1 additions and 1 deletions
  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);
             }
         }