mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-2172: GENERATOR_TYPE_UUID missing in EntityGenerator.php #2733
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 @doctrinebot on GitHub (Nov 27, 2012).
Jira issue originally created by user paro22:
Hey guys!
In my model I used UUID as the generator strategy for my id:
@GeneratedValue(strategy="UUID")
It works for creating my UUID but when I add some changes to my model and run
orm:generate-entities --generate-annotations="true" models/
it throws the following exception:
"[InvalidArgumentException]
Invalid provided IdGeneratorType: 6 "
Looking at the EntityGenerator.php I saw that the UUID type is not (yet?) in there. When I add it to the function getIdGeneratorTypeString() everything works fine...
I'm new to Doctrine so I'm not sure if this is actually a bug, but it seems weird to me ;-)
@doctrinebot commented on GitHub (Nov 27, 2012):
Comment created by @FabioBatSilva:
Fixed :
29f0b678cf@doctrinebot commented on GitHub (Nov 27, 2012):
Issue was closed with resolution "Fixed"