Skip to content

Commit 9737bcc

Browse files
committed
[DoctrineBridge] Use normalizedIds for resetting entity manager services
1 parent 5de56eb commit 9737bcc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Symfony/Bridge/Doctrine/ManagerRegistry.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ protected function resetService($name)
5353
}
5454
$manager->setProxyInitializer(\Closure::bind(
5555
function (&$wrappedInstance, LazyLoadingInterface $manager) use ($name) {
56-
if (isset($this->aliases[$name = strtolower($name)])) {
56+
if (isset($this->normalizedIds[$normalizedId = strtolower($name)])) {
57+
$name = $this->normalizedIds[$normalizedId];
58+
}
59+
if (isset($this->aliases[$name])) {
5760
$name = $this->aliases[$name];
5861
}
5962
$method = !isset($this->methodMap[$name]) ? 'get'.strtr($name, $this->underscoreMap).'Service' : $this->methodMap[$name];

0 commit comments

Comments
 (0)