Skip to content

Conversation

rosier
Copy link
Contributor

@rosier rosier commented Sep 3, 2025

This PR adds the config enable_native_lazy_objects: true to fix the deprecation on PHP 8.4+ and removes the config enable_lazy_ghost_objects as it's no longer needed.

With Doctrine ORM v3 installed the DoctrineBundle enables the lazy ghosts by default (doctrine/DoctrineBundle#1722) and in Doctrine ORM v3 the lazy ghosts are enabled unconditionally (doctrine/orm#10969).

The config enable_native_lazy_objects: true is only enabled on PHP 8.4+

@94noni 94noni mentioned this pull request Sep 16, 2025
@rosier rosier force-pushed the enable_native_lazy_objects branch from 3626e58 to 7dcfd2b Compare September 16, 2025 17:50
@rosier rosier changed the title Having native lazy objects disabled on PHP 8.4+ is deprecated since Doctrine ORM v3.5 Not enabling native lazy objects on PHP 8.4+ is deprecated since Doctrine ORM v3.5 Sep 16, 2025
@rosier rosier force-pushed the enable_native_lazy_objects branch from 7dcfd2b to a8b8b0d Compare September 16, 2025 17:53
@rosier rosier force-pushed the enable_native_lazy_objects branch from a8b8b0d to 9054224 Compare October 1, 2025 15:51
@javiereguiluz
Copy link
Member

This looks a bit convoluted ... but I guess we don't have any other option because this is conditional absed on the PHP version being used.

Thanks Jan!

@javiereguiluz javiereguiluz merged commit b60fd21 into symfony:main Oct 3, 2025
8 checks passed
@rosier rosier deleted the enable_native_lazy_objects branch October 5, 2025 17:44
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.

3 participants