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

Closed
opened 2026-01-22 12:41:57 +01:00 by admin · 4 comments
Owner

Originally created by @doctrinebot on GitHub (Mar 17, 2010).

Jira issue originally created by user mluiten:

Excerpt from the docs at http://www.doctrine-project.org/documentation/manual/2_0/en/basic-mapping#identifiers-/-primary-keys:
{quote}
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'.
{quote}

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

See attachment for patch.

Originally created by @doctrinebot on GitHub (Mar 17, 2010). Jira issue originally created by user mluiten: Excerpt from the docs at http://www.doctrine-project.org/documentation/manual/2_0/en/basic-mapping#identifiers-/-primary-keys: {quote} 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'. {quote} However, when trying to use the Annotation @GeneratedValue, i get an `Undefined class constant 'Doctrine\ORM\Mapping\ClassMetadata::GENERATOR*TYPE*'`. See attachment for patch.
admin added the Bug label 2026-01-22 12:41:57 +01:00
admin closed this issue 2026-01-22 12:41:57 +01:00
Author
Owner

@doctrinebot commented on GitHub (Mar 17, 2010):

Comment created by romanb:

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

@doctrinebot commented on GitHub (Mar 17, 2010): Comment created by romanb: Well, you should try trunk first, to see whether something is already implemented :)
Author
Owner

@doctrinebot commented on GitHub (Mar 17, 2010):

Issue was closed with resolution "Invalid"

@doctrinebot commented on GitHub (Mar 17, 2010): Issue was closed with resolution "Invalid"
Author
Owner

@doctrinebot commented on GitHub (Mar 17, 2010):

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 commented on GitHub (Mar 17, 2010): 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 ;)
Author
Owner

@doctrinebot commented on GitHub (Dec 13, 2015):

Imported 1 attachments from Jira into https://gist.github.com/da7913f232d4c1716fb3

@doctrinebot commented on GitHub (Dec 13, 2015): Imported 1 attachments from Jira into https://gist.github.com/da7913f232d4c1716fb3 - [10486_default-generatedvalue-to-auto.patch](https://gist.github.com/da7913f232d4c1716fb3#file-10486_default-generatedvalue-to-auto-patch)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#543