mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
[Symfony 7.3-RC1] The "Symfony\Component\VarExporter\LazyGhostTrait" trait is deprecated, use native lazy objects instead. #7511
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 @ruudk on GitHub (May 27, 2025).
Today I tried installing Symfony 7.3 RC1 and the following deprecation appeared in my tests:
Is there a workaround for this?
@mbabker commented on GitHub (May 27, 2025):
Use PHP 8.4 + ORM 3.4 when released + config changes from https://github.com/doctrine/orm/pull/11853
@ruudk commented on GitHub (May 27, 2025):
@mbabker thanks! Is there an ETA for 3.4?
@derrabus commented on GitHub (May 27, 2025):
We'll try to make it happen soon'ish. ✌️
@OrestisZag commented on GitHub (Jun 13, 2025):
@derrabus I am pretty sure you are working on this very hard, but is there any update about when the 3.4 will be released? 😃
@greg0ire commented on GitHub (Jun 13, 2025):
We have discussed it internally and found a PR that we might want to ship with 3.4.0, and that needs a review.
@ruudk commented on GitHub (Jun 14, 2025):
@greg0ire which PR is that? Could you assign it to the milestone so that it's visible?
@beberlei commented on GitHub (Jun 14, 2025):
3.4 is out now
@eltharin commented on GitHub (Jun 14, 2025):
Message still always present, comme from the
trait_existsfunction call in DI\DoctrineExtension.php (had the same issue on maker bundle).Is it preferable to move deprecation in a class function (but witch one ? ) in a symfony PR or test another file in DI in doctrine ?
@greg0ire commented on GitHub (Jun 14, 2025):
Please provide a link.
@eltharin commented on GitHub (Jun 14, 2025):
Oh... already change https://github.com/doctrine/DoctrineBundle/blob/2.14.x/src/DependencyInjection/DoctrineExtension.php#L560
was
if (! trait_exists(LazyGhostTrait::class)) {beforeFixed in
bd90d28f9esorry
@michaljusiega commented on GitHub (Jun 14, 2025):
@greg0ire It's is possible to support new configuration option
enableNativeLazyObjectsfrom https://github.com/doctrine/orm/pull/11853 in https://github.com/doctrine/DoctrineBundle ?Anyway, thanks for 3.4.0 release guys! Good job!
@ruudk commented on GitHub (Jun 14, 2025):
Does it mean we need a newly tagged release of DoctrineBundle then?
@eltharin commented on GitHub (Jun 14, 2025):
It seems yes. (I try dev files and have no deprecation)
@ruudk commented on GitHub (Jun 14, 2025):
@greg0ire @beberlei would you be able to help with a release of the bundle too? Then we can close this as resolved. Thanks for all the hard work 🙌🙌
@greg0ire commented on GitHub (Jun 15, 2025):
Sure, here you go: https://github.com/doctrine/DoctrineBundle/releases/tag/2.14.1
Cc @ostrolucky
@ruudk commented on GitHub (Jun 15, 2025):
@greg0ire I think the fix was merged into 2.15.x
bd90d28f9eWhoops, never mind!
@greg0ire commented on GitHub (Jun 15, 2025):
Yes the history is a bit weird, I think it was committed directly to the branch without a PR, and then since the wrong branch was picked for https://github.com/doctrine/DoctrineBundle/pull/1887, it got merged up in that PR accidentally.
@greg0ire commented on GitHub (Jun 15, 2025):
@michaljusiega I don't think there should be any blocker
@eltharin commented on GitHub (Jun 15, 2025):
if any blocker, I made that : https://github.com/doctrine/DoctrineBundle/pull/1888