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

Add 'attribute' to allowed mapping config types #10

Closed
wants to merge 2 commits into from

Conversation

L41rx
Copy link

@L41rx L41rx commented Mar 25, 2021

Hi! Recently doctrine/orm#8266 was merged in. I had made a new symfony project and wanted to use the entity attributes to generate a schema, I was able to do so but needed to allow setting a type of "attribute" in my doctrine orm mappings type configuration by changing this class
(and adding the corresponding parameter for the attributes driver to DoctrineBundle (doctrine/DoctrineBundle#1313)

I am not sure if this is useful, sorry if it is not! (I am not sure which branch this should go to, because I guess this relies on doctrine/orm 2.9.x)

thanks for all the code by the way!

@symfony-bot
Copy link

symfony-bot bot commented Mar 25, 2021

Thanks for your pull request! We love contributions.

However, this repository is what we call a "subtree split": a read-only copy of one directory of the main Symfony repository. It is used by Composer to allow developers to depend on specific Symfony components.

If you want to contribute, you should instead open a pull request on the main repository:

https://github.com/symfony/symfony

Thank you for your contribution!

PS: if you haven't already, please add tests, and beware that bug fixes should be submitted on the lowest maintained branch where they apply.

Copy link
Member

@dunglas dunglas left a comment

Choose a reason for hiding this comment

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

LGTM except the exception message.

DependencyInjection/AbstractDoctrineExtension.php Outdated Show resolved Hide resolved
Update exception message with allowed values

Co-authored-by: Kévin Dunglas <[email protected]>
@L41rx
Copy link
Author

L41rx commented Mar 26, 2021

LGTM except the exception message.

thx! missed it

@nicolas-grekas
Copy link
Member

Closing, as explained by the bot.
Coincidentally, this has now been proposed at symfony/symfony#40793
Thanks for submitting.

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