mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Wrong error reporting on multiple GeneratedValue annotation usage #6819
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Genarito on GitHub (Sep 6, 2021).
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-devand, as I describe in this Stack Overflow question whenGeneratedValueis used on multiple fields with different strategies Doctrines uses only the last definition. For instance, defining:Will wire the
Doctrine\ORM\Id\AssignedGeneratorto the fieldcontractinstead 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!
@greg0ire commented on GitHub (Sep 8, 2021):
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
composer show|grep orm. Also, did you suddenly experience this issue after an upgrade?@derrabus commented on GitHub (Sep 9, 2021):
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. 🙂