DDC-2172: GENERATOR_TYPE_UUID missing in EntityGenerator.php #2733

Closed
opened 2026-01-22 14:01:53 +01:00 by admin · 2 comments
Owner

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 ;-)

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 ;-)
admin added the Bug label 2026-01-22 14:01:53 +01:00
admin closed this issue 2026-01-22 14:01:54 +01:00
Author
Owner

@doctrinebot commented on GitHub (Nov 27, 2012):

Comment created by @FabioBatSilva:

Fixed : 29f0b678cf

@doctrinebot commented on GitHub (Nov 27, 2012): Comment created by @FabioBatSilva: Fixed : https://github.com/doctrine/doctrine2/commit/29f0b678cfb991e90af3eed023fb8c62ec8f7acf
Author
Owner

@doctrinebot commented on GitHub (Nov 27, 2012):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Nov 27, 2012): Issue was closed with resolution "Fixed"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#2733