Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-953

CLI tools orm:generate-entities --regenerate-entities=1 flag will generate empty entities 50% of time.

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0.2, 2.1
    • Component/s: Mapping Drivers
    • Security Level: All
    • Labels:
      None
    • Environment:
      Ubuntu 10.10, PHP5.3.3

      Description

      Running the command:
      doctrine orm:generate-entities --regenerate-entities=1 --generate-annotations=1 ./

      50% of the time my entity will appear as:
      <?php

      namespace models;

      /**

      • models\Role
        *
      • @Table(name="roles")
      • @Entity(repositoryClass="models\repositories\RoleRepository")
        */
        class Role
        {

      }

      The other 50% everything will be in there. In addition, if the --regenerate-entities=1 argument is removed, if I change the data in my YAML schema file for a column (such as changing length=255 to length=50 on a string), the annotations won't be updated when the updated entity is generated. It seems only new fields are being added to the entity files which is why --regenerate-entities=1 was required in the first place.

        Activity

        Hide
        Benjamin Eberlei added a comment -

        Fixed

        Show
        Benjamin Eberlei added a comment - Fixed
        Hide
        Flyn San added a comment -

        This issue is still not fixed in 2.0.1. Simply run orm:generate-entities --regenerate-entities=1 --generate-annotations=1 to replicate.

        Show
        Flyn San added a comment - This issue is still not fixed in 2.0.1. Simply run orm:generate-entities --regenerate-entities=1 --generate-annotations=1 to replicate.
        Hide
        Benjamin Eberlei added a comment -

        Yes, because this issue is fixed in 2.0.2 not in 2.0.1.

        Show
        Benjamin Eberlei added a comment - Yes, because this issue is fixed in 2.0.2 not in 2.0.1.

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Flyn San
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: