Skip to content

Conversation

@GromNaN
Copy link
Member

@GromNaN GromNaN commented Oct 29, 2025

When native lazy objects are used, there is no proxy class wrapping the entity/document class.

@GromNaN GromNaN force-pushed the nullable-proxyInterfaceName branch from dab9bde to da18d27 Compare October 29, 2025 18:36
greg0ire
greg0ire previously approved these changes Oct 30, 2025
SenseException
SenseException previously approved these changes Oct 30, 2025
@greg0ire greg0ire added this to the 3.4.4 milestone Oct 31, 2025
@greg0ire
Copy link
Member

@GromNaN why are you targeting 3.4.x ? Is this a bugfix?

@GromNaN
Copy link
Member Author

GromNaN commented Oct 31, 2025

It's not absolutely a bug since you can pass the Doctrine\Persistence\Proxy interface name instead even if native lazy objects don't implement it. But the name of an existing interface is required.

@greg0ire
Copy link
Member

That's not a bug indeed, that's a design issue. I think you should target 4.2.x

@greg0ire
Copy link
Member

Or rather, just close in favor of #460

@greg0ire greg0ire removed this from the 3.4.4 milestone Nov 2, 2025
@GromNaN GromNaN dismissed stale reviews from SenseException and greg0ire via f54f31c November 2, 2025 19:54
@GromNaN GromNaN force-pushed the nullable-proxyInterfaceName branch from da18d27 to f54f31c Compare November 2, 2025 19:54
@GromNaN GromNaN changed the base branch from 3.4.x to 4.2.x November 2, 2025 19:54
@GromNaN GromNaN force-pushed the nullable-proxyInterfaceName branch 2 times, most recently from a52f493 to bf7ed7f Compare November 2, 2025 20:11
@GromNaN
Copy link
Member Author

GromNaN commented Nov 2, 2025

I rebased this PR on 4.2, since #460 is going to be for 5.x.

Skipping the ReflectionClass is a small performance optimization.

@GromNaN GromNaN force-pushed the nullable-proxyInterfaceName branch from bf7ed7f to 1df2243 Compare November 2, 2025 20:13
@GromNaN GromNaN force-pushed the nullable-proxyInterfaceName branch from 1df2243 to 0550eef Compare November 2, 2025 20:15
@greg0ire greg0ire added this to the 4.2.0 milestone Nov 5, 2025
@greg0ire greg0ire merged commit ad1dc76 into doctrine:4.2.x Nov 5, 2025
11 checks passed
@greg0ire
Copy link
Member

greg0ire commented Nov 5, 2025

Thanks @GromNaN !

@GromNaN GromNaN deleted the nullable-proxyInterfaceName branch November 8, 2025 19:56
GromNaN added a commit to GromNaN/doctrine-persistence that referenced this pull request Dec 4, 2025
GromNaN added a commit to GromNaN/doctrine-persistence that referenced this pull request Dec 4, 2025
@GromNaN GromNaN mentioned this pull request Dec 4, 2025
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.

4 participants