Преглед изворни кода

[DoctrineBridge] fixed typo

Fabien Potencier пре 14 година
родитељ
комит
e0b768bfc0
1 измењених фајлова са 1 додато и 1 уклоњено
  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);
             }
         }