Skip to content


DDC-434: GeneratedValue does not default to 'AUTO' #4934

doctrinebot opened this Issue · 4 comments

1 participant


Jira issue originally created by user mluiten:

Excerpt from the docs at
This tells Doctrine to automatically generate a value for the identifier. How this value is generated is specified by the strategy attribute, which is optional and defaults to 'AUTO'.

However, when trying to use the Annotation @GeneratedValue, i get an Undefined class constant 'Doctrine\ORM\Mapping\ClassMetadata::GENERATOR*TYPE*'.

See attachment for patch.


Comment created by romanb:

Well, you should try trunk first, to see whether something is already implemented :)


Issue was closed with resolution "Invalid"


Comment created by mluiten:

I really should. Sorry. Didn't encounter the link to trunk/2.0 branch on my way to the JIRA. Actually couldn't find a link to trunk anywhere.

At least the patch was bang-on ;)

@doctrinebot doctrinebot added this to the 2.0-BETA1 milestone
@doctrinebot doctrinebot closed this
@doctrinebot doctrinebot added the Bug label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.