There was an error while loading. Please reload this page.
1 parent f21dc42 commit 7517fa4Copy full SHA for 7517fa4
src/Symfony/Bundle/DoctrineBundle/Registry.php
@@ -237,7 +237,7 @@ public function getEntityManagerForObject($object)
237
foreach ($this->entityManagers as $id) {
238
$em = $this->container->get($id);
239
240
- if ($em->getConfiguration()->getMetadataDriverImpl()->isTransient($class)) {
+ if (!$em->getConfiguration()->getMetadataDriverImpl()->isTransient($class)) {
241
return $em;
242
}
243
0 commit comments