Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-434

GeneratedValue does not default to 'AUTO'

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: 2.0-ALPHA4
    • Fix Version/s: 2.0-BETA1
    • Component/s: Mapping Drivers, ORM
    • Security Level: All
    • Labels:
      None

      Description

      Excerpt from the docs at http://www.doctrine-project.org/documentation/manual/2_0/en/basic-mapping#identifiers-/-primary-keys:

      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.

        Activity

        Hide
        Roman S. Borschel added a comment -

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

        Show
        Roman S. Borschel added a comment - Well, you should try trunk first, to see whether something is already implemented
        Hide
        Menno Luiten added a comment -

        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

        Show
        Menno Luiten added a comment - 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

          People

          • Assignee:
            Roman S. Borschel
            Reporter:
            Menno Luiten
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: