Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch proxies to LazyGhostTrait #2700

Merged
merged 10 commits into from
Jan 22, 2025
Prev Previous commit
Next Next commit
Type fixes
  • Loading branch information
GromNaN committed Jan 21, 2025
commit 4d4c8647320641ea4c343ac14dfa7efdcb4cefb5
3 changes: 1 addition & 2 deletions lib/Doctrine/ODM/MongoDB/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ class Configuration

private bool $useLazyGhostObject = true;


/**
* Adds a namespace under a certain alias.
*/
Expand Down Expand Up @@ -652,7 +651,7 @@ public function setUseLazyGhostObject(bool $flag): void

public function isLazyGhostObjectEnabled(): bool
{
return $this->useLazyGhostObject ?? true;
return $this->useLazyGhostObject;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public function __construct(
$this->lifecycleEventManager = new LifecycleEventManager($dm, $this->uow, $dm->getEventManager());
}

/** @param array<mixed> $identifier */
/** @param mixed $identifier */
public function getProxy(ClassMetadata $metadata, $identifier): InternalProxy
{
$className = $metadata->getName();
Expand Down