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

[GH-6855] Prevent unsupported lifecycle callback mapping on embedded classes. #8381

Conversation

beberlei
Copy link
Member

@beberlei beberlei commented Dec 7, 2020

fixes #6855

For now we want to throw a deprecation message when a lifecycle callback is put on an Embedded class, because they are not actually recognized, are not called and instead they are just ignored.

In 3.0 then this will be changed to throw an exception, so that users will immediately see they are doing something wrong.

@beberlei beberlei added this to the 2.9.0 milestone Feb 28, 2021
SenseException
SenseException previously approved these changes Mar 1, 2021
@beberlei beberlei merged commit 2685b65 into doctrine:2.9.x Mar 4, 2021
@beberlei beberlei deleted the GH-6855-PreventLifecycleCallbackDefinitionsOnEmbeddededClasses branch March 4, 2021 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants