Skip to content

Conversation

@derrabus
Copy link
Member

@derrabus derrabus commented Aug 4, 2025

The Configuration::isNativeLazyObjectsEnabled() method is called quite often in our codebase. It shouldn't be necessary to check for an trigger a deprecation whenever we call that method. As a performance improvement, I therefore propose to trigger the deprecation only once when we create the proxy factory.

@derrabus derrabus force-pushed the improvement/better-lazy-ghost-deprecation branch from bbf1f78 to d14c43b Compare August 4, 2025 20:42
@derrabus derrabus force-pushed the improvement/better-lazy-ghost-deprecation branch from d14c43b to 7148fc7 Compare August 4, 2025 20:45
@derrabus derrabus merged commit eb2cd53 into doctrine:3.5.x Aug 4, 2025
85 checks passed
@derrabus derrabus deleted the improvement/better-lazy-ghost-deprecation branch August 4, 2025 21:48
derrabus added a commit to derrabus/orm that referenced this pull request Aug 4, 2025
* 3.5.x:
  Move LazyGhost deprecation to ProxyFactory (doctrine#12101)
  Address deprecations from doctrine/dbal (doctrine#12098)
derrabus added a commit to derrabus/orm that referenced this pull request Aug 4, 2025
* 3.6.x:
  Move LazyGhost deprecation to ProxyFactory (doctrine#12101)
  Address deprecations from doctrine/dbal (doctrine#12098)
  Remove if statement
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants