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

Deprecate getEntityManager and getEntity from PreUpdateEventArgs #9877

Closed

Conversation

franmomu
Copy link
Contributor

@franmomu franmomu commented Jul 2, 2022

Ref: #9875

In 3.0, PreUpdateEventArgs will extend PreUpdateEventArgs from doctrine/persistence instead of Doctrine\ORM\Event\LifecycleEventArgs and those methods won't be available anymore.

This will ease the upgrade to 3.0

In 3.0, PreUpdateEventArgs will extend PreUpdateEventArgs from
doctrine/persistence and those methods won't be available anymore.
Instead, getObjectManager and getObject should be used.
@derrabus
Copy link
Member

derrabus commented Jul 8, 2022

Shouldn't we rather deprecate Doctrine\ORM\Event\LifecycleEventArgs instead?

@franmomu
Copy link
Contributor Author

Closed in favor of #9906

@franmomu franmomu closed this Jul 17, 2022
@franmomu franmomu deleted the deprecations_pre_update_event_args branch July 17, 2022 10:16
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.

2 participants