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

Closed
opened 2026-01-22 14:34:19 +01:00 by admin · 5 comments
Owner

Originally created by @doctrinebot on GitHub (Aug 26, 2014).

Originally assigned to: @deeky666 on GitHub.

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}

Originally created by @doctrinebot on GitHub (Aug 26, 2014). Originally assigned to: @deeky666 on GitHub. 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}
admin added the Bug label 2026-01-22 14:34:19 +01:00
admin closed this issue 2026-01-22 14:34:19 +01:00
Author
Owner

@doctrinebot commented on GitHub (Aug 26, 2014):

@doctrinebot commented on GitHub (Aug 26, 2014): - depends on [DDC-3302: [GH-1132] DDC-3272 entity generator mapped superclass casing](http://www.doctrine-project.org/jira/browse/DDC-3302)
Author
Owner

@doctrinebot commented on GitHub (Sep 10, 2014):

Comment created by @ocramius:

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

@doctrinebot commented on GitHub (Sep 10, 2014): Comment created by @ocramius: Marked as minor issue: the entity generator is not the primary focus of the project.
Author
Owner

@doctrinebot commented on GitHub (Sep 10, 2014):

Comment created by @ocramius:

Provided a hotfix at https://github.com/doctrine/doctrine2/pull/1132

@doctrinebot commented on GitHub (Sep 10, 2014): Comment created by @ocramius: Provided a hotfix at https://github.com/doctrine/doctrine2/pull/1132
Author
Owner

@doctrinebot commented on GitHub (Sep 10, 2014):

Comment created by @deeky666:

Fixed in commit: https://github.com/doctrine/doctrine2/commit/b249aa9f652efdd36992ea542ccbd8e82f1b75be

@doctrinebot commented on GitHub (Sep 10, 2014): Comment created by @deeky666: Fixed in commit: https://github.com/doctrine/doctrine2/commit/b249aa9f652efdd36992ea542ccbd8e82f1b75be
Author
Owner

@doctrinebot commented on GitHub (Sep 10, 2014):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Sep 10, 2014): Issue was closed with resolution "Fixed"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#4048