[PR #12101] Move LazyGhost deprecation to ProxyFactory #13480

Open
opened 2026-01-22 16:17:13 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/12101

State: closed
Merged: Yes


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.

**Original Pull Request:** https://github.com/doctrine/orm/pull/12101 **State:** closed **Merged:** Yes --- 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.
admin added the pull-request label 2026-01-22 16:17:13 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#13480