mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DEPRECATION: Since symfony/var-exporter 7.3 #7532
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @alexeybaturin46 on GitHub (Jul 4, 2025).
Bug Report
Summary
I updated php to 8.4 and started getting warnings like "DEPRECATION: Since symfony/var-exporter 7.3: ..."
Current behavior
Аfter running autotests I started receiving warnings "DEPRECATION: Since symfony/var-exporter 7.3: Generating lazy proxy for class "App\Entity\SomeEntityClassName" is deprecated; leverage native lazy objects instead." and "DEPRECATION: Since symfony/var-exporter 7.3: The "Symfony\Component\VarExporter\LazyProxyTrait" trait is deprecated, use native lazy objects instead."
Expected behavior
Autotests have to end without any warnings
How to reproduce
Just upgrade your php to 8.4 and symfony to 7.3 and run codeceptin autotest. I found issue where people told to update doctrine/orm version to 3.4 and doctrine/doctrine-bundle to 2.15 after that add 'enable_native_lazy_objects: false' in config/packeges/doctrine.yaml. But it doesn`t help me
@greg0ire commented on GitHub (Jul 4, 2025):
false?!? It should be set totrue!@derrabus commented on GitHub (Jul 4, 2025):
The deprecation tells you to use native proxies, but you actively opt-out of them. This is expected behavior.