DDC-81: Wrong class names when using sub-namespaces #101

Closed
opened 2026-01-22 12:27:06 +01:00 by admin · 3 comments
Owner

Originally created by @doctrinebot on GitHub (Oct 30, 2009).

Originally assigned to: @jwage on GitHub.

Jira issue originally created by user nicokaiser:

When using sub-namespaces, e.g. an entity is named "Entity\User\Permission", the annontated PHP file has the wrong class:

  • - - - 8< - - - -
    namespace Entity\User;
    ...
    class User\Permission
    {
    ...
  • - - - 8< - - - -

The namespace is correct, but the class should be "class Permission"...

The attaches patch should fix this in AnnotationExporter

Originally created by @doctrinebot on GitHub (Oct 30, 2009). Originally assigned to: @jwage on GitHub. Jira issue originally created by user nicokaiser: When using sub-namespaces, e.g. an entity is named "Entity\User\Permission", the annontated PHP file has the wrong class: - \- - - 8< - - - - namespace Entity\User; ... class User\Permission { ... - \- - - 8< - - - - The namespace is correct, but the class should be "class Permission"... The attaches patch should fix this in AnnotationExporter
admin added the Bug label 2026-01-22 12:27:06 +01:00
admin closed this issue 2026-01-22 12:27:06 +01:00
Author
Owner

@doctrinebot commented on GitHub (Nov 11, 2009):

Comment created by @jwage:

Thanks for the ticket and patch.

@doctrinebot commented on GitHub (Nov 11, 2009): Comment created by @jwage: Thanks for the ticket and patch.
Author
Owner

@doctrinebot commented on GitHub (Nov 11, 2009):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Nov 11, 2009): Issue was closed with resolution "Fixed"
Author
Owner

@doctrinebot commented on GitHub (Dec 13, 2015):

Imported 1 attachments from Jira into https://gist.github.com/7aea6e7b9065b0ea78d1

@doctrinebot commented on GitHub (Dec 13, 2015): Imported 1 attachments from Jira into https://gist.github.com/7aea6e7b9065b0ea78d1 - [10120_annotationexporter-subnamespaces.patch](https://gist.github.com/7aea6e7b9065b0ea78d1#file-10120_annotationexporter-subnamespaces-patch)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#101