Skip to content

[DoctrineBridge] Fix detecting mapping with one line annotations #48896

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

Merged
merged 1 commit into from
Jan 9, 2023
Merged

[DoctrineBridge] Fix detecting mapping with one line annotations #48896

merged 1 commit into from
Jan 9, 2023

Conversation

franmomu
Copy link
Contributor

@franmomu franmomu commented Jan 6, 2023

Q A
Branch? 5.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #...
License MIT
Doc PR symfony/symfony-docs#...

When using one line comment (which is enabled by default when using doctrine/coding-standard 11) to specify that a class is an Entity:

/** @Entity */
class Person 
{
    // ...
}

it doesn't detect properly the annotation and returns attribute instead of annotation.

@nicolas-grekas
Copy link
Member

Thank you @franmomu.

@nicolas-grekas nicolas-grekas merged commit 05582da into symfony:5.4 Jan 9, 2023
@franmomu franmomu deleted the fix_mapping_one_line branch January 9, 2023 09:28
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.

4 participants