We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cc102a commit 947e467Copy full SHA for 947e467
src/StaticEntityManager.php
@@ -58,9 +58,8 @@ public function __construct($staticEntityClass)
58
public function get($id, $forceInstance = false)
59
{
60
if (array_key_exists($id, $this->instances)) {
61
- return null === $this->instances[$id] ? $this->reflection->newInstance() : $this->instances[$id];
+ return $this->instances[$id];
62
} elseif (!$data = $this->getData($id)) {
63
- $this->instances[$id] = null;
64
return $forceInstance ? $this->reflection->newInstance() : null;
65
}
66
0 commit comments