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

Improve comment in generated code #2735

Merged
merged 1 commit into from
Feb 28, 2025
Merged

Conversation

GromNaN
Copy link
Member

@GromNaN GromNaN commented Feb 27, 2025

Q A
Type improvement
BC Break no
Fixed issues -

Summary

Minor improvement to distinct between ReferenceMany and EmbedMany in the generated code.

@GromNaN GromNaN added this to the 2.10.2 milestone Feb 27, 2025
@@ -294,7 +294,7 @@ private function generateHydratorClass(ClassMetadata $class, string $hydratorCla
$code .= sprintf(
<<<'EOF'

// ReferenceMany & EmbedMany
// %4$s
Copy link
Member

Choose a reason for hiding this comment

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

What is this commented type specifier supposed to mean?

Copy link
Member Author

Choose a reason for hiding this comment

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

It identifies the field type of the following generated code. It's not very important, but as I was reading I saw that it was possible to tell which of the both types the field is.

@GromNaN GromNaN merged commit 2e49ae1 into doctrine:2.10.x Feb 28, 2025
19 checks passed
@GromNaN GromNaN deleted the gen-comment branch February 28, 2025 09:59
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.

3 participants