Skip to content

[Doctrine] add missing mapping type (PHP Attributes) #15421

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
Jun 9, 2021
Merged

[Doctrine] add missing mapping type (PHP Attributes) #15421

merged 1 commit into from
Jun 9, 2021

Conversation

xthiago
Copy link
Contributor

@xthiago xthiago commented Jun 7, 2021

Support for Doctrine ORM 2.9 AttributeDrive was added a time ago, but the docs does not mention that possibility yet.

doctrine:
    orm:
        mappings:
            Your\Namespace:
                type: attribute # <-- HERE
                dir: '%kernel.project_dir%/src/Your/Namespace'
                prefix: 'Your\Namespace'
                alias: YN

@javiereguiluz
Copy link
Member

Thiago, thanks for improving this! Congrats on your first Symfony Docs contribution 🎉

@xthiago xthiago deleted the patch-1 branch June 9, 2021 11:49
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.

3 participants