Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LifecycleEventArgs::getEntity() is deprecated #733

Open
alveri opened this issue Jun 7, 2023 · 2 comments
Open

LifecycleEventArgs::getEntity() is deprecated #733

alveri opened this issue Jun 7, 2023 · 2 comments

Comments

@alveri
Copy link

alveri commented Jun 7, 2023

deprecation.INFO: User Deprecated: Method Doctrine\ORM\Event\LifecycleEventArgs::getEntity() is deprecated and will be removed in Doctrine ORM 3.0. Use getObject() instead. (LifecycleEventArgs.php:49 called by TranslatableEventSubscriber.php:164, doctrine/orm#9875, package doctrine/orm) {"exception":"[object] (ErrorException(code: 0): User Deprecated: Method Doctrine\ORM\Event\LifecycleEventArgs::getEntity() is deprecated and will be removed in Doctrine ORM 3.0. Use getObject() instead. (LifecycleEventArgs.php:49 called by TranslatableEventSubscriber.php:164, doctrine/orm#9875, package doctrine/orm) at ../vendor/doctrine/deprecations/lib/Doctrine/Deprecations/Deprecation.php:195)

@marcin-janowski-teb
Copy link

marcin-janowski-teb commented Sep 27, 2023

There is more deprecation for php 8.1, 8.2 and ex 6.3 / 6.4 symfony release. I'm linking to the post and it's nice to know whether there will be a new release / upgrade or whether other libraries / own solution should be included. Regards

@tacman
Copy link

tacman commented Nov 27, 2023

I've added a PR for this, but it's complicated by whether or not the bundle will continue to support versions that are not longer supported by Symfony (e.g. 6.0 and 6.1).

I've been reviewing the issues and PRs, it seems like this is a great point to create a version 3 branch that only supports 6.4 and ^7.

In addition to Symfony 7 coming in a few days, Doctrine DBAL 4 is at Release Candidate 1, which of course we'll want to support.

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

No branches or pull requests

3 participants