Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-3272

EntityGenerator writes 'MappedSuperClass' instead of 'MappedSuperclass'

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.4
    • Fix Version/s: 2.5
    • Component/s: Tools
    • Security Level: All
    • Environment:
      not relevant

      Description

      In file doctrine/orm/lib/Doctrine/ORM/Tools/EntityGenerator.php, method: generateEntityDocBlock at line: 826, we have

      $lines[] = ' * @' . $this->annotationsPrefix . 'MappedSuperClass';

      but we do NOT have an annotation in Doctrine\ORM\Mapping called 'MappedSuperClass' but 'MappedSuperclass. (Notice the lowercase "c"!).

      When using the generator, this generates the mapped superclass with wrong annotation resulting in

      AnnotationException ::semanticalError ('The annotation "@Doctrine\ORM\Mapping\MappedSuperClass" in class Jab\Bundle\PlatformBundle\Entity\JabEntity does not exist, or could not be auto-loaded.')
      in /home/data/WWW/localServer/test.bradipo/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php at line 706

        Issue Links

          Activity

          Hide
          Marco Pivetta added a comment -

          Marked as minor issue: the entity generator is not the primary focus of the project.

          Show
          Marco Pivetta added a comment - Marked as minor issue: the entity generator is not the primary focus of the project.
          Hide
          Marco Pivetta added a comment -
          Show
          Marco Pivetta added a comment - Provided a hotfix at https://github.com/doctrine/doctrine2/pull/1132
          Show
          Steve Müller added a comment - Fixed in commit: https://github.com/doctrine/doctrine2/commit/b249aa9f652efdd36992ea542ccbd8e82f1b75be

            People

            • Assignee:
              Steve Müller
              Reporter:
              Jakab Adam Balazs
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: