Skip to content

Commit 7517fa4

Browse files
committed
[DoctrineBundle] Fixed the transient test
1 parent f21dc42 commit 7517fa4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/DoctrineBundle/Registry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ public function getEntityManagerForObject($object)
237237
foreach ($this->entityManagers as $id) {
238238
$em = $this->container->get($id);
239239

240-
if ($em->getConfiguration()->getMetadataDriverImpl()->isTransient($class)) {
240+
if (!$em->getConfiguration()->getMetadataDriverImpl()->isTransient($class)) {
241241
return $em;
242242
}
243243
}

0 commit comments

Comments
 (0)