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

Implement BC compatibel BackedEnum switch #10158

Closed
wants to merge 1 commit into from

Conversation

SerethiX
Copy link

No description provided.

@SerethiX
Copy link
Author

Fixes #10132

Copy link
Member

@derrabus derrabus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, but as always: we need a test that covers your change.

: $data[$fieldName]);
if (isset($class->associationMappings[$fieldName])) {
$idHash .= ' ' . $data[$class->associationMappings[$fieldName]['joinColumns'][0]['name']];
} elseif (class_exists('\BackedEnum') && is_a($data[$fieldName], '\BackedEnum')) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The class_exists() feels unnecessary and also wrong, given that BackedEnum is actually an interface.

@derrabus
Copy link
Member

Closing due to lack of feedback and given that the patch is apparently not correct. Feel free to open a new PR if you want to pick up the work.

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