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

Support Doctrine attributes alongside annotations in BaseTranslation #44

Merged
merged 3 commits into from
Apr 4, 2024

Conversation

relthyg
Copy link
Member

@relthyg relthyg commented Apr 2, 2024

This PR adds Doctrine attributes to the MappedSuperclass BaseTranslation while keeping the annotations in place. This allows BaseTranslation to be used with either annotations or attribute-based Doctrine configurations.

@relthyg relthyg changed the title Use doctrine attributes alongside annotations Use doctrine attributes alongside annotations (Case 169868) Apr 2, 2024
@relthyg relthyg force-pushed the doctrine-attributes branch from 1c3ad56 to adc22d4 Compare April 2, 2024 13:13
@relthyg relthyg changed the title Use doctrine attributes alongside annotations (Case 169868) Use Doctrine attributes alongside annotations (Case 169868) Apr 2, 2024
@relthyg relthyg requested a review from mpdude April 2, 2024 13:14
For the moment, we can't replace annotations by attributes in tests, as
`webfactory/doctrine-orm-test-infrastructure` is strongly coupled to
`Doctrine\ORM\Mapping\Driver\AnnotationDriver` and
`Doctrine\Common\Annotations\AnnotationReader`.
@relthyg relthyg requested a review from mpdude April 3, 2024 09:58
@mpdude mpdude changed the title Use Doctrine attributes alongside annotations (Case 169868) Support Doctrine attributes alongside annotations in BaseTranslation Apr 4, 2024
@mpdude mpdude merged commit ca1a738 into master Apr 4, 2024
6 checks passed
@mpdude mpdude deleted the doctrine-attributes branch April 4, 2024 10:37
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.

2 participants