mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-434: GeneratedValue does not default to 'AUTO' #543
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 (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.
@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):
Issue was closed with resolution "Invalid"
@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 (Dec 13, 2015):
Imported 1 attachments from Jira into https://gist.github.com/da7913f232d4c1716fb3