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

Don't define Doctrine annotations as a hard dependency? #8785

Closed
javiereguiluz opened this issue Jun 25, 2021 · 1 comment
Closed

Don't define Doctrine annotations as a hard dependency? #8785

javiereguiluz opened this issue Jun 25, 2021 · 1 comment

Comments

@javiereguiluz
Copy link
Contributor

In #8266 @beberlei added support for defining mapping with PHP attributes. However, doctrine/annotations is still defined as a required dependency of this project:

"doctrine/annotations": "^1.13",

Is there any technical reason to keep it as is, or is it just that we need to find someone willing to contribute this change? Thanks!

@alcaeus
Copy link
Member

alcaeus commented Jun 25, 2021

There is no hard requirement with attributes, and there shouldn't have been one in the first place. I believe a solution as implemented in doctrine/persistence#197 would make sense here.

greg0ire added a commit to greg0ire/doctrine-orm that referenced this issue Jun 25, 2021
First, there are other drivers than the annotations-based one, and
second, one of them is base on attributes, which are basically
annotations native to PHP.

Closes doctrine#8785
greg0ire added a commit to greg0ire/doctrine-orm that referenced this issue Jun 26, 2021
First, there are other drivers than the annotations-based one, and
second, one of them is base on attributes, which are basically
annotations native to PHP.

Closes doctrine#8785
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

No branches or pull requests

3 participants