Closed derrabus closed 3 months ago
@derrabus @beberlei on 2.x, phpbench runs on PHP 7.4. I reproduce the issue locally on 2.x, with PHP 8.3 The benchmark works by calling a method that sounds like it is internal: https://github.com/doctrine/orm/blob/4175edf31174a04037c07dcea14c86895cccc1ae/tests/Performance/LazyLoading/ProxyInitializationTimeBench.php#L39
So maybe this issue does not affect end users at all.
So maybe this issue does not affect end users at all.
It doesn't. The bench installs mock implementations of UoW and friends to prevent the load()
calls from actually hitting a database. Apparently, these mocks were incomplete and need to be adjusted to the changes from #11376.
I've pushed a commit that fixes the mocks. Shall I backport the change and make PHPBench on 2.19 run on PHP 8.1+ with lazy ghosts enabled? Or shall we leave the lower branch as it is now?
I think it's a good idea to avoid such surprises on merge up so yes, please do that
@greg0ire @beberlei I need help with the merge-up.
The new tests introduced in (#11380) seem to reveal a bug in our new metadata classes.