Skip to content

Loading…

DDC-3272: EntityGenerator writes 'MappedSuperClass' instead of 'MappedSuperclass' #4062

Closed
doctrinebot opened this Issue · 5 comments

2 participants

@doctrinebot

Jira issue originally created by user jakabadambalazs:

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 {quote}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{quote}

@doctrinebot

Comment created by @ocramius:

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

@doctrinebot

Comment created by @ocramius:

Provided a hotfix at #1132

@doctrinebot

Comment created by @deeky666:

Fixed in commit: b249aa9

@doctrinebot

Issue was closed with resolution "Fixed"

@deeky666 deeky666 was assigned by doctrinebot
@doctrinebot doctrinebot added this to the 2.5 milestone
@doctrinebot doctrinebot closed this
@doctrinebot doctrinebot added the Bug label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.