Wrong error reporting on multiple GeneratedValue annotation usage #8993
Unanswered
Genarito
asked this question in
Support Questions
Replies: 2 comments 2 replies
-
Why are you not using a stable version? That area of the code has been touched lately, so it's quite important to determine which version you are actually using with |
Beta Was this translation helpful? Give feedback.
0 replies
-
Let's move this to support. I don't think that an issue with a more than seven years old dev snapshot counts as a bug report. 🙂 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I don't know if the issue is still present in the current versions of Doctrine. The version I'm using is
doctrine/orm": "2.3.x-dev
and, as I describe in this Stack Overflow question whenGeneratedValue
is used on multiple fields with different strategies Doctrines uses only the last definition. For instance, defining:Will wire the
Doctrine\ORM\Id\AssignedGenerator
to the fieldcontract
instead ofDoctrine\ORM\Id\SequenceGenerator
. More detailed information in my S.O. question.Maybe it'll be great to improve the documentation to describe this behavior or fix it if it's not expected.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions