-
-
Notifications
You must be signed in to change notification settings - Fork 66
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
Emit deprecation for LifecycleEventArgs::getEntity #281
Conversation
@@ -41,6 +42,13 @@ public function __construct($object, ObjectManager $objectManager) | |||
*/ | |||
public function getEntity() | |||
{ | |||
Deprecation::trigger( | |||
'doctrine/persistence', | |||
'https://github.com/doctrine/persistence/pull/281', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's refer to the original PR or issue instead? It was before PRs were used, but we still could use the link to the commit I suppose: aca6f03 It does not explain much, so I let you judge what is best.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to, but simple annotation led me to code migration 🙈 I'll dig further
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeaaah, deprecated for 10 years now! aca6f03
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR is doctrine/common#222
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh right, there was a split!
9af15eb
to
bf3cb9e
Compare
bf3cb9e
to
ad2a9ff
Compare
The method itself had `@deprecated` on it for a long time
ad2a9ff
to
7fe015c
Compare
Thanks @malarzm ! |
This really didn't need runtime behaviour additions: it was fully statically verifiable. |
It'd be weird that we emit deprecations for everything but this one tho :) |
Yikes, it's gone awfully sideways then 😱 |
@Ocramius what's so wrong about having the deprecation reported through both mechanisms? https://www.doctrine-project.org/policies/deprecation.html clearly needs a refresh, so now would be a good time to have a discussion about this. |
The method itself had
@deprecated
on it for a long time