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 support for all mapping drivers #39

Closed
wants to merge 1 commit into from

Conversation

Okhoshi
Copy link

@Okhoshi Okhoshi commented Sep 4, 2023

With PHP8 Attributes, Doctrine is slowly phasing out annotations. It would be awesome to have support for Attributes with this project, as well as other Mapping Driver.

It would probably also fix #14.

@mpdude
Copy link
Member

mpdude commented Feb 27, 2024

Sorry for not getting back to this for so long 🐼 .

I have an alternative solution in #48 that works not by passing the type of mapping as a string, but by providing the mapping driver directly. That also supports 'hybrid' configurations that might not be possible with the solution suggested here.

Also, being able to pass a MappingDriver might allow for better integration with frameworks like Symfony, where the MappingDriver can be obtained from the DIC and is readily (auto-)configured.

@Okhoshi
Copy link
Author

Okhoshi commented Feb 28, 2024

No worries ! Happy to see some activity on this project again ! 🎉

I'm perfectly fine with #48, it indeed solves the problem in a more elegant way 👍

Closing this in favor of #48 then.

@Okhoshi Okhoshi closed this Feb 28, 2024
@Okhoshi Okhoshi deleted the support-mapping-drivers branch April 15, 2024 12:48
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.

Ability to (auto)load entity configuration via XML/YML files
2 participants