Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2172

GENERATOR_TYPE_UUID missing in EntityGenerator.php

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4, 2.3.1
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None
    • Environment:
      Codeigniter 2

      Description

      Hey guys!

      In my model I used UUID as the generator strategy for my id:
      @GeneratedValue(strategy="UUID")
      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:
      "[InvalidArgumentException]
      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

        Activity

        Show
        Fabio B. Silva added a comment - Fixed : https://github.com/doctrine/doctrine2/commit/29f0b678cfb991e90af3eed023fb8c62ec8f7acf

          People

          • Assignee:
            Fabio B. Silva
            Reporter:
            Paul R
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: