[DDC-2172] GENERATOR_TYPE_UUID missing in EntityGenerator.php Created: 27/Nov/12  Updated: 27/Nov/12  Resolved: 27/Nov/12

Status: Resolved
Project: Doctrine 2 - ORM
Component/s: ORM
Affects Version/s: None
Fix Version/s: 2.4, 2.3.1
Security Level: All

Type: Bug Priority: Major
Reporter: Paul R Assignee: Fabio B. Silva
Resolution: Fixed Votes: 0
Labels: None

Codeigniter 2


Hey guys!

In my model I used UUID as the generator strategy for my id:
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:
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

Comment by Fabio B. Silva [ 27/Nov/12 ]

Fixed : https://github.com/doctrine/doctrine2/commit/29f0b678cfb991e90af3eed023fb8c62ec8f7acf

Generated at Wed Nov 25 18:53:40 EST 2015 using JIRA 6.4.10#64025-sha1:5b8b74079161cd76a20ab66dda52747ee6701bd6.